fix(#2330): document trailingIconAriaLabel property for Input#398
Conversation
✅ Deploy Preview for abgov-ui-component-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
@copilot The previous versions of our components, Angular v3 and React v5, does not have the {version === "old" && (And we use the following logic for showing properties for the new versions (Angular 4v and React v6): {version === "new" && (Can you make the |
... I've updated the code to make the |
|
@copilot I noticed the screenshot in your PR description doesn't show the changes. Could you replace it with a screenshot that shows the "Trailing Icon ARIA Label" input? |
|
@twjeffery @bdfranck One thing that could be added. The intended experience for this was for the aria-label only to be added when the trailing icon is a clickable element, to give the screen reader an idea of what they were clicking. It might be a good idea to update the documentation in the properties window to say when this should be used, ie. "Should only be using when making the trailing icon interactive"? |
|
@copilot Add this to the end of the |
|
Thanks for the suggestion @ArakTaiRoth! Copilot updated the PR with the changes:
|
6b53244 to
cebb18e
Compare
|
I've squashed the four commits into a single one. |


Summary
Updates the Input component documentation to address issue #2330 by adding the missing
trailingIconAriaLabelproperty and clarifying thatautoCapitalizeonly works on mobile devices.Changes Made
1. Added
trailingIconAriaLabelProperty DocumentationtrailingIconAriaLabelproperty to both current and legacy component properties with proper descriptionstrailingIconAriaLabel) and Angular (trailingiconarialabel) implementations2. Updated
autoCapitalizeProperty DescriptionContext
This documentation update reflects the functionality added in PR #2376, which implemented the
trailingIconAriaLabelproperty for improved accessibility when using trailing icons in Input components. The autoCapitalize clarification helps developers understand the platform limitations of this HTML feature.Testing
trailingIconAriaLabelproperty with correct descriptionScreenshots
The screenshot shows:
Related
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.