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

Read route short names in lower case #4911

Merged
merged 9 commits into from
Jan 30, 2024
Merged

Read route short names in lower case #4911

merged 9 commits into from
Jan 30, 2024

Conversation

nurmAV
Copy link
Contributor

@nurmAV nurmAV commented Dec 19, 2023

Proposed Changes

  • Makes screen reader read route short names and metro symbols (M) in lower case to avoid them being read as roman numerals in some cases

Pull Request Check List

  • A reasonable set of unit tests is included
  • Console does not show new warnings/errors
  • Changes are documented or they are self explanatory
  • This pull request does not have any merge conflicts
  • All existing tests pass in CI build
  • Code coverage does not decrease (unless measured incorrectly)

Review

  • Read and verify the code changes
  • Test the functionality by running the UI locally with all popular browsers available in your platform
  • Check that the implementation matches the design, when such one is defined in a Jira issue
  • Merge the pull request

Copy link
Member

@vesameskanen vesameskanen left a comment

Choose a reason for hiding this comment

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

Lisäksi pari muuta asiaa:

  • Haku lukee edelleen M1, katso saisitko korjattua
  • toLowerCase tehdään sumeilematta joka paikassa, vaikka propsit tai niiden kentät saattaa olla null/undefined. Tämä kaataa UI:n jos data ei ole tavanomaista. Tarkista milloin on tuvallista tehdä tuo lowe case konversio ja muuta koodia sen mukaisesti.

@@ -17,11 +17,26 @@ const AlternativeLegsInfo = ({ legs, showAlternativeLegs, toggle }) => {
)) ||
(legs.length > 1 ? (
<FormattedMessage
aria-hidden="true"
Copy link
Member

Choose a reason for hiding this comment

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

miksi tässä on aria-hidden?

@@ -57,7 +57,7 @@ const LegInfo = (
aria-label={`${intl.formatMessage({
id: mode.toLowerCase(),
defaultMessage: 'Vehicle',
})} ${leg.route && leg.route.shortName}}`}
})} ${leg.route && leg.route.shortName.toLowerCase()}}`}
>
Copy link
Member

Choose a reason for hiding this comment

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

vanha bugi: ruudun lukija lukee route m1 curly bracket. fiksaatko.

@vesameskanen
Copy link
Member

resolve conflicts

@vesameskanen vesameskanen merged commit db4cde8 into v3 Jan 30, 2024
6 checks passed
@vesameskanen vesameskanen deleted the DT-6120 branch January 30, 2024 13:47
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