Skip to content

Conversation

@yotam-wix
Copy link
Collaborator

Description

textField - added better handling of textField a11y label. Added unification of all different parts of the component (Label, helperText, charCounter), ordered by a11y guidelines given.

Changelog

textField - a11y label fix.

Additional info

MADS-4797

@yotam-wix yotam-wix requested review from lidord-wix and removed request for lidord-wix December 22, 2025 09:12
Copy link
Collaborator

@lidord-wix lidord-wix left a comment

Choose a reason for hiding this comment

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

Added some comments
BTW, the decision of the reading order is made by the UX?

Comment on lines +156 to +158
} else if (placeholder) {
parts.push(placeholder);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Have we decided to include the placeholder? it can also be some weird example..

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That's what Alexey said in the case helper text is empty :|

parts.push(`you can enter up to ${others.maxLength} characters`);
}

return parts.join(', ');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Seems like it will work, for English :)
What about other languages?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Should I use i18n? Do I need to change something with the reading order of the label in other languages?

yotam-wix and others added 2 commits December 25, 2025 13:34
Co-authored-by: Lidor Dafna <66782556+lidord-wix@users.noreply.github.com>
@yotam-wix
Copy link
Collaborator Author

Added some comments BTW, the decision of the reading order is made by the UX?

@lidord-wix

that was discussed with Alexey and Naama and that's what Alexey said in the end

@yotam-wix yotam-wix requested a review from lidord-wix December 25, 2025 12:08
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