-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
♿ [#2625] Add mobile design for keeping accessibility functions available on small screens #1470
♿ [#2625] Add mobile design for keeping accessibility functions available on small screens #1470
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #1470 +/- ##
========================================
Coverage 94.31% 94.31%
========================================
Files 1066 1066
Lines 40063 40065 +2
========================================
+ Hits 37785 37787 +2
Misses 2278 2278 ☔ View full report in Codecov by Sentry. |
ce242bd
to
ac1e40f
Compare
801eca9
to
dc64266
Compare
2cfd57c
to
98e1531
Compare
@pi-sigma @swrichards How to review this PR:
|
Thanks for the review steps @jiromaykin -- very helpful! I see the a11y buttons and they're functional (enlarge, read aloud work as expected, at least for the latter with the known caveats for Linux). I can also reach the skiplink. The styling of "Inloggen" en "Zoeken" does look slightly off to me compared to the design: Is that expected? I went through the steps outlined above (and did another |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a question and small points, thanks.
search_forms = [ | ||
form | ||
for form in doc.find("form").items() | ||
if form.find("button[title='Zoeken']") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick I guess, but: can't we simply do something like doc.find("form:has(> button[title='Zoeken'])")
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did at first! But then I got the error "cssselect.parser.SelectorSyntaxError: Expected an argument, got <DELIM '[' at 15>..." and it seems due to cssselect
, which doesn’t support all the same selectors as the jQuery-like PyQuery. Specifically, it seems to not support :has() with attribute selectors directly.
To get around this limitation, I tried an alternative approach: first find all forms on the page, then filter them programmatically to check if they contain a button[title='Zoeken'] with a simple CSS attribute selector that would work in all browser engines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shame that the selector support appears to be limited, but no worries, thanks for the explanation!
|
||
This will include the `Open-Inwoner-Design-Tokens`_ subdirectory. When all is built and run this is where the OIP design tokens CSS will be generated. When this repository gets updated, it needs to be pulled again. | ||
|
||
.. _Open-Inwoner-Design-Tokens: https://github.com/maykinmedia/open-inwoner-design-tokens |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might not be a bad idea to still include a reference to this repo? Not in these steps indeed, but just as a note (perhaps in step 5, "Note the project makes use of the open-inwoner-design-tokens
package, which contains the project's design tokens for the NL Design System."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yeah, I could, though programmatically it has the same importance as all other NPM packages needed for this project to work, so NLDS package is just another Node module now.
This Readme contained a remnant from when we were still using some subdirectory packages.
@swrichards Oh no's that screenshot doesn't look correct at all. ![]() |
This is now fixed (presumably due to working from a stale branch ref on my end). |
issue: https://taiga.maykinmedia.nl/project/open-inwoner/task/2625
Design: https://www.figma.com/design/iKGhWhstaLIlFSaND2q7cE/OIP---Designs-(new)?node-id=1664-13773&m=dev
A11Y docs from NL Design-System: : https://nl-design-system.github.io/utrecht/storybook/?path=/docs/css_css-skip-link--docs
Skiplink on Desktop and Mobile becomes visible as very first Tabbable focus-visible element: