-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat(TextLink): accesibility improvements #1072
Conversation
src/theme.tsx
Outdated
@@ -13,6 +13,7 @@ const TEXTS_ES = { | |||
disablePasswordVisibility: 'Ocultar contraseña', | |||
loading: 'Cargando', | |||
linkOpensInNewTab: 'Se abre en ventana nueva', | |||
linkOpensInCurrentPage: 'página actual', |
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.
waiting for real translations:
https://jira.tid.es/browse/LOC-1503
@@ -136,6 +136,7 @@ const RawTouchable = React.forwardRef<TouchableElement, Props>((props, ref) => { | |||
const type = props.type ? props.type : 'button'; | |||
|
|||
const openNewTab = !!props.href && !!props.newTab; | |||
const openInCurrentPage = props.href?.startsWith('#'); |
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.
I think this check is enough, wdyt?
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.
I can't think of a counterexample
Size stats
|
Accessibility report ℹ️ You can run this locally by executing |
Deploy preview for mistica-web ready! ✅ Preview Built with commit 66db209. |
Co-authored-by: Pedro Ladaria <[email protected]>
Co-authored-by: Pedro Ladaria <[email protected]>
🎉 This PR is included in version 15.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
WEB-1623