-
Notifications
You must be signed in to change notification settings - Fork 146
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
added structured data markup and aria labels to site navigation #3539
base: stable
Are you sure you want to change the base?
Conversation
class="navbar-toggler d-lg-none p-3" | ||
type="button" | ||
id="mobile-navigation-toggler" | ||
for="mobile-navigation-wrapper" |
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.
for="mobile-navigation-wrapper" |
I don't think the for
attribute is allowed on anything besides <label>
and <output>
https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/for
type="button" | ||
id="mobile-navigation-toggler" | ||
for="mobile-navigation-wrapper" | ||
aria-controls="menu" |
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.
Wouldn't this only work if there was an interactive element with id="menu" ?
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls
@@ -559,6 +559,9 @@ myAccountSave = "Save" | |||
myAccountSettings = "Account settings" | |||
myAccountShippingAddresses = "Delivery addresses" | |||
; myAccount - My account | |||
; navigation | |||
menuLabel = "Menu" |
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.
menuLabel = "Menu" | |
menuLabel = "Open mobile navigation menu" |
I think this is a bit more descriptive
@@ -556,6 +556,9 @@ myAccountSave = "Speichern" | |||
myAccountSettings = "Kontoeinstellungen" | |||
myAccountShippingAddresses = "Lieferadressen" | |||
; myAccount - My account | |||
; navigation | |||
menuLabel = "Menü" |
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.
Open mobile navigation menu
menuLabel = "Menü" | |
menuLabel = "Mobiles Navigationsmenü öffnen" |
I think this is a bit more descriptive
<button v-open-mobile-navigation class="navbar-toggler d-lg-none p-3" type="button"> | ||
<button v-open-mobile-navigation | ||
class="navbar-toggler d-lg-none p-3" | ||
type="button" |
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.
type="button" | |
type="menu" |
Wouldn't type="menu"
be more accurate here?
https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement#htmlbuttonelement.type
All changes meet the following requirements
@plentymarkets/plentyshop
please test. Some changes are not being tested by the author