-
Notifications
You must be signed in to change notification settings - Fork 334
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
Add parameter to localise mobile menu toggle button #2720
Conversation
7b1ab85
to
ae748c7
Compare
I'd suggest using (Also works if we find we need to add e.g. |
ae748c7
to
fa18951
Compare
In my redo of the footer parameters I did end up changing them from taking strings to following the whole I agree with @domoscargin that being able to set HTML here probably isn't needed. The main counterpoint I can think of is a situation where a language may have quite a long word(s) for navigation menu, so they opt to abbreviate it but then want a title/aria-label/visually-hidden text to expand upon it. |
Just noticed we now have a Wondering if it might make sense to make |
fa18951
to
d5e5a1f
Compare
@36degrees, I've defaulted I've also had a go at writing a changelog entry, but it feels a bit meh to just say "don't make it too long". Do we have any character length restrictions on other parameters? |
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.
Changes all look sensible to me – my only suggestion is that it'd be good to have a test that the aria-label on the nav changes when menuButtonText
is set.
I'm thinking it'd be enough documentation-wise to edit the header.yaml
|
614a6c1
to
d2b2724
Compare
To parrot what I've already said on Slack, for the permanent record:
|
@christopherthomasdesign What do you think? Does this require more design work? Or will some kind of guidance do? |
d2b2724
to
dd0d382
Compare
I don't think so, long as we make it clear this is specifically to accommodate different languages. There seems to be enough space for a long-ish word to go alongside the logo. We just want to make sure users check the word they use still looks ok on smaller screens and at different zoom levels. |
dd0d382
to
ab166e4
Compare
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.
Looks good! Let's hold off merging until 4.3.1 is done
Adds the `menuButton` parameter to customise the text of the menu toggle button that appears on narrow screens.
ab166e4
to
cbdbe25
Compare
Moved the changelog entry as it was in the wrong location now that 4.3.1 has released. |
Adds the
menuButtonText
parameter to customise the text of the menu toggle button that appears on narrow screens.Cherry picked this from @querkmachine's spike [#2614] as the minimum changes required.
Fixes #1904