-
Notifications
You must be signed in to change notification settings - Fork 136
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
Conversation
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.
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.
app/component/AlternativeLegsInfo.js
Outdated
@@ -17,11 +17,26 @@ const AlternativeLegsInfo = ({ legs, showAlternativeLegs, toggle }) => { | |||
)) || | |||
(legs.length > 1 ? ( | |||
<FormattedMessage | |||
aria-hidden="true" |
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.
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()}}`} | |||
> |
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.
vanha bugi: ruudun lukija lukee route m1 curly bracket. fiksaatko.
resolve conflicts |
Proposed Changes
Pull Request Check List
Review