- Issue created by @mh_nichts
- @mh_nichts opened merge request.
- ๐ซ๐ทFrance mh_nichts
I've made a proposal.
For the aria-haspopup attribute, I just changed it to "dialog" : I didn't delete it, and I didn't add one on the search "open" button, to stay closest to the DSFR documentation (https://www.systeme-de-design.gouv.fr/elements-d-interface/composants/en...). Nevertheless we will open an issue on the DSFR side to fix their code. - Status changed to Needs review
about 1 year ago 11:06am 18 August 2023 - Assigned to pdureau
- ๐ซ๐ทFrance mh_nichts
Issue crรฉรฉe cรดtรฉ DSFR pour aria-haspopup : https://github.com/GouvernementFR/dsfr/issues/744
- Issue was unassigned.
- Status changed to Needs work
about 1 year ago 3:22pm 29 August 2023 - ๐ซ๐ทFrance pdureau Paris
Hi,
You have added
id="fr-btn-search-mobile"
and movedid="fr-btn-menu-mobile"
Is it safe to have such hardcoded ID? What may happen if we have many header component in the page?
(it is a real question, not a rhetorical one)
If hardcoding those ID is an issue, you can introduce a new
header_id
string prop ("textfield setting") then (non-tested non-authoritative proposal):{% set header_id = header_id|default("header-" ~ random() ) %} ... <button class="fr-btn--search fr-btn" data-fr-opened="false" aria-controls="{{ search_mid }}" title="{{ 'Search'|t }}" id="{{ header_id }}-search-mobile"> ... <button class="fr-btn--menu fr-btn" data-fr-opened="false" aria-controls="{{ mobile_menu_mid }}" aria-haspopup="dialog" title="{{ 'Menu'|t }}" id="{{ header_id }}-menu-mobile"> ... <div class="fr-header__search fr-modal" id="{{ search_mid }}" aria-labelledby="{{ header_id }}-search-mobile"> ... <div class="fr-header__menu fr-modal" id="{{ mobile_menu_mid }}" aria-labelledby="{{ header_id }}-menu-mobile">
What do you think?
PS: There are also search_mid & mobile_menu_mid which may be problematic but they don't come from your MR and will be fixed in ๐ [beta4] Always use default() filter with random function() Fixed
- ๐ซ๐ทFrance mh_nichts
Sorry about all the separate pushes, but MR should be OK now :)
- Status changed to Needs review
about 1 year ago 9:39am 11 September 2023 - Status changed to Needs work
about 1 year ago 2:32pm 13 September 2023 - ๐ซ๐ทFrance pdureau Paris
header_id was added but not defined in templates/patterns/header/header.ui_patterns.yml
- Status changed to Needs review
about 1 year ago 9:13am 18 September 2023 -
pdureau โ
committed 8069686f on 1.0.x authored by
mh_nichts โ
git commit -m 'Issue #3381866 by mh_nichts: Accessibility issues in...
-
pdureau โ
committed 8069686f on 1.0.x authored by
mh_nichts โ
- Status changed to Fixed
about 1 year ago 1:59pm 18 September 2023 - Status changed to Fixed
about 1 year ago 6:10pm 18 September 2023