Skip to content
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

Open
wants to merge 2 commits into
base: stable
Choose a base branch
from

Conversation

MaxBentz
Copy link
Contributor

All changes meet the following requirements

  • Changelog entry was added
  • Changes have been documented
  • Changes have been tested by the author
  • Changes have been tested by the reviewer
  • Changes to SCSS have been accounted for in plentyShop LTS Modern

@plentymarkets/plentyshop
please test. Some changes are not being tested by the author

@Tim-M-S Tim-M-S added the translation required Pull requests that are adding multilingual contents that needs to be translated properly. label Aug 9, 2024
class="navbar-toggler d-lg-none p-3"
type="button"
id="mobile-navigation-toggler"
for="mobile-navigation-wrapper"
Copy link
Contributor

@Tim-M-S Tim-M-S Aug 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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"
Copy link
Contributor

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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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ü"
Copy link
Contributor

@Tim-M-S Tim-M-S Aug 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Open mobile navigation menu

Suggested change
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"
Copy link
Contributor

@Tim-M-S Tim-M-S Aug 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
type="button"
type="menu"

Wouldn't type="menu" be more accurate here?
https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement#htmlbuttonelement.type

@fmutschler fmutschler removed the translation required Pull requests that are adding multilingual contents that needs to be translated properly. label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants