form action="htt
p>
<input type="radio" name="flavor" id="choc
<label for="choc">Chocolate</label><br/>
<input type="radio" name="flavor" id="crea
<label for="cream">Cream Filled</label><
<input type="radio" name="flavor" id="hone
<label for="honey">Honey Glazed</label><
<input type="submit" value="Purchase Donut
</p>
</form>
If your form isn't correctly labeled,
screen reader users have no idea
what to input into the fields.
Do your plugins work correctly
in RTL languages?
Many plugins add blocks
into the admin screen.
If you set these properties in your
plugin's stylesheet, you may need to change
the 'left' to 'right' in RTL languages:
• text-align: left
• margin-left:
• padding-left:
• border-left:
• left:
If you set these properties in your
plugin's stylesheet, you may need to change
the 'left' to 'right' in RTL languages:
• text-align: right
• margin-right:
• padding-right:
• border-right:
• right:
WordPress function is_rtl() tells
if the site language is RTL.
if ( is_rtl() ) {
wp_enqueue_style( 'style-rtl',
'/css/style-rtl.css' );
}
Make an additional stylesheet for RTL
and load it when the site language is RTL.
We looked at two aspects today
but of course
these are not the only things we need to learn.
Accessibility Localization
&
These are not about cool programming
techniques, but it doesn't mean it's not
important for developers.
ACTUALLY, IT’S REALLY
IMPORTANT!
The Responsibility of
Plugin Developers Is
to Keep WordPress
Accessible for Everyone.
This is what I keep in mind
when creating a plugin.