diff options
| author | kujiu <kujiu@users.noreply.github.com> | 2018-06-22 21:22:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-22 21:22:21 +0200 |
| commit | 9de1bc0eef6f5bfaa2a8d745431caa361ae91548 (patch) | |
| tree | 342ddbf7fb2b7303606f864ff9f68cbf1bd8814e /addons/pos_restaurant/static/src/xml/floors.xml | |
| parent | 864357203fc6222cc989b99a5e9f428cd53f413f (diff) | |
[IMP] Improve compatibility with screen readers (accessibility) (#24574)
Today, Odoo is really tricky to use without seeing the screen, it must be improved to be usable.
This PR forbid to use labels without a "for" attribute, add some title, rule and aria attributes in HTML. With that, Odoo will be fully usable with a screen reader.
* [IMP] Labels must have a for attribute. Improve accessibility.
* [IMP] Better error message when trying to read a missing cached value
* [FIX] Add some aria-label and title attributes for screen readers.
* [FIX] Template name is not included in the error message in case of SyntaxError in QWeb
* [FIX] Improve the Tour failed at step error message to be more explicit.
* [IMP] Add aria-labels
* [FIX] Add missing aria-label on failing test
* [IMP] aria-hidden means hidden. Fix all bad aria-hidden and hide aria-hidden for all.
* [IMP] Color names on kanban views and many2many tags
* [IMP] Add some checks on views for accessibility.
* [IMP] Add `alt` attribute on `img` tags.
* [IMP] Add aria-label and title on non-described icons
* [IMP] Add button role to widgets with btn class
* [IMP] Translate aria and formatted attributes.
* [IMP] Remove wrong aria-labelledby
* [IMP] Add menu role on dropdowns
* [IMP] Buttons must be focusable
* [IMP] Add aria attributes on progress bars
* [IMP] Improve accessibility of basic widgets
* [IMP] Change main layout to more semantic tags
* [IMP] Add menuitem role when missing
* [IMP] Remove wrong role='presentation'
* [IMP] Improve accessibility of tab panels
* [IMP] Add aria-invalid on invalid fields
* [IMP] Add aria-sort on ordered columns
* [IMP] Add role on alerts
* [IMP] Use dialog role, header, main and footer tags for modals
* [IMP] Add labels on o_status
* [IMP] Improve accessibility of kanban view with feeds and articles
* [IMP] Add alerts in case of new messages
* [IMP] Add widget, navigation or img role to aria-labelled items
Diffstat (limited to 'addons/pos_restaurant/static/src/xml/floors.xml')
| -rw-r--r-- | addons/pos_restaurant/static/src/xml/floors.xml | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/addons/pos_restaurant/static/src/xml/floors.xml b/addons/pos_restaurant/static/src/xml/floors.xml index 5e6e54d0c15..7606ff776de 100644 --- a/addons/pos_restaurant/static/src/xml/floors.xml +++ b/addons/pos_restaurant/static/src/xml/floors.xml @@ -34,7 +34,7 @@ <t t-name="TransferOrderButton"> <div class='control-button'> - <i class='fa fa-arrow-right' /> Transfer + <span class='fa fa-arrow-right' > Transfer</span> </div> </t> @@ -79,7 +79,7 @@ <t t-name="BackToFloorButton"> <span class="order-button floor-button"> - <i class='fa fa-angle-double-left'/> + <i class='fa fa-angle-double-left' role="img" aria-label="Back to floor" title="Back to floor"/> <t t-esc="floor.name"/> <span class='table-name'> ( <t t-esc="table.name" /> ) @@ -104,60 +104,60 @@ </t> <div class='floor-map' t-att-style='widget.get_floor_style()' > <div class='empty-floor oe_hidden'> - This floor has no tables yet, use the <i class="fa fa-plus"></i> button in the editing toolbar to create new tables. + This floor has no tables yet, use the <i class="fa fa-plus" role="img" aria-label="Add button" title="Add button"></i> button in the editing toolbar to create new tables. </div> <div class='tables'></div> - <span t-if="widget.pos.user.role == 'manager'" class='edit-button editing'><i class='fa fa-pencil'></i></span> + <span t-if="widget.pos.user.role == 'manager'" class='edit-button editing'><i class='fa fa-pencil' role="img" aria-label="Edit" title="Edit"></i></span> <div class='edit-bar oe_hidden'> <span class='edit-button new-table'> - <i class='fa fa-plus'></i> + <i class='fa fa-plus' role="img" aria-label="Add" title="Add"></i> </span> <span class='edit-button dup-table needs-selection'> - <i class='fa fa-files-o'></i> + <i class='fa fa-files-o' role="img" aria-label="Duplicate" title="Duplicate"></i> </span> <span class='edit-button rename needs-selection'> - <i class='fa fa-font'></i> + <i class='fa fa-font' role="img" aria-label="Rename" title="Rename"></i> </span> <span class='edit-button seats needs-selection'> - <i class='fa fa-user'></i> + <i class='fa fa-user' role="img" aria-label="Seats" title="Seats"></i> </span> <span class='edit-button shape needs-selection'> - <span class='button-option square'><i class='fa fa-square-o'></i></span> - <span class='button-option round oe_hidden'><i class='fa fa-circle-o'></i></span> + <span class='button-option square'><i class='fa fa-square-o' role="img" aria-label="Square Shape" title="Square Shape"></i></span> + <span class='button-option round oe_hidden'><i class='fa fa-circle-o' role="img" aria-label="Round Shape" title="Round Shape"></i></span> </span> <span class='edit-button color'> - <i class='fa fa-tint'></i> + <i class='fa fa-tint' role="img" aria-label="Tint" title="Tint"></i> <div class='color-picker fg-picker oe_hidden'> - <div class='close-picker'> + <div class='close-picker' title="Close" role="img" aria-label="Close"> <i class='fa fa-times' /> </div> - <span class='color tl' style='background-color:#EB6D6D' /> - <span class='color' style='background-color:#35D374' /> - <span class='color tr' style='background-color:#6C6DEC' /> - <span class='color' style='background-color:#EBBF6D' /> - <span class='color' style='background-color:#EBEC6D' /> - <span class='color' style='background-color:#AC6DAD' /> - <span class='color bl' style='background-color:#6C6D6D' /> - <span class='color' style='background-color:#ACADAD' /> - <span class='color br' style='background-color:#4ED2BE' /> + <span class='color tl' style='background-color:#EB6D6D' role="img" aria-label="Red" title="Red"/> + <span class='color' style='background-color:#35D374' role="img" aria-label="Green" title="Green"/> + <span class='color tr' style='background-color:#6C6DEC' role="img" aria-label="Blue" title="Blue"/> + <span class='color' style='background-color:#EBBF6D' role="img" aria-label="Orange" title="Orange"/> + <span class='color' style='background-color:#EBEC6D' role="img" aria-label="Yellow" title="Yellow"/> + <span class='color' style='background-color:#AC6DAD' role="img" aria-label="Purple" title="Purple"/> + <span class='color bl' style='background-color:#6C6D6D' role="img" aria-label="Grey" title="Grey"/> + <span class='color' style='background-color:#ACADAD' role="img" aria-label="Light grey" title="Light grey"/> + <span class='color br' style='background-color:#4ED2BE' role="img" aria-label="Turquoise" title="Turquoise"/> </div> <div class='color-picker bg-picker oe_hidden'> - <div class='close-picker'> + <div class='close-picker' title="Close" role="img" aria-label="Close"> <i class='fa fa-times' /> </div> - <span class='color tl' style='background-color:rgb(244, 149, 149)' /> - <span class='color' style='background-color:rgb(130, 233, 171)' /> - <span class='color tr' style='background-color:rgb(136, 137, 242)' /> - <span class='color' style='background-color:rgb(255, 214, 136)' /> - <span class='color' style='background-color:rgb(254, 255, 154)' /> - <span class='color' style='background-color:rgb(209, 171, 210)' /> - <span class='color bl' style='background-color:rgb(75, 75, 75)' /> - <span class='color' style='background-color:rgb(210, 210, 210)' /> - <span class='color br' style='background-color:rgb(127, 221, 236)' /> + <span class='color tl' style='background-color:rgb(244, 149, 149)' role="img" aria-label="Red" title="Red"/> + <span class='color' style='background-color:rgb(130, 233, 171)' role="img" aria-label="Green" title="Green"/> + <span class='color tr' style='background-color:rgb(136, 137, 242)' role="img" aria-label="Blue" title="Blue"/> + <span class='color' style='background-color:rgb(255, 214, 136)' role="img" aria-label="Orange" title="Orange"/> + <span class='color' style='background-color:rgb(254, 255, 154)' role="img" aria-label="Yellow" title="Yellow"/> + <span class='color' style='background-color:rgb(209, 171, 210)' role="img" aria-label="Purple" title="Purple"/> + <span class='color bl' style='background-color:rgb(75, 75, 75)' role="img" aria-label="Grey" title="Grey"/> + <span class='color' style='background-color:rgb(210, 210, 210)' role="img" aria-label="Light grey" title="Light grey"/> + <span class='color br' style='background-color:rgb(127, 221, 236)' role="img" aria-label="Turquoise" title="Turquoise"/> </div> </span> <span class='edit-button trash needs-selection'> - <i class='fa fa-trash'></i> + <i class='fa fa-trash' role="img" aria-label="Delete" title="Delete"></i> </span> </div> |
