FSHSP-111 fix(tabs): expose the scroll navigators' aria-labels as inputs - #35
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contexte
Les deux boutons de défilement de
ui-tab-list(modescrollable) portaient unaria-labelécrit en dur dans le template — les seuls libellés du kit qu'une application consommatrice ne pouvait pas surcharger. Le kit ne ship aucune couche i18n (règle « No i18n catalog in the kit »,AGENTS.md) : tout nom accessible doit être une entrée avec défaut français, commecloseAriaLabelsurui-modalouprevPageAriaLabelsurui-paginator. Une application non francophone héritait donc de deux libellés lecteur d'écran intraduisibles.Changements
UiTabListexposeprevAriaLabel/nextAriaLabel(input<string>(…)), les textes actuels servant de valeurs par défaut → aucun changement de rendu.[attr.aria-label]="…() || null", conforme à la règle de garde contre la chaîne vide.ui-tabs.stories.ts:argTypes+args, et la storyScrollablebinde les deux entrées — c'est la seule où les navigateurs sont rendus, donc la seule où les contrôles Storybook sont utiles.ui-tabs.mdx: deux lignes dans le tableau d'API deui-tab-list.CHANGELOG.md: entrée sous[Unreleased]/Added(l'API du package publié change).Vérification
node_modules. Les modifications sont des bindings de template calqués surui-paginator, mais unnpm ci && npm run ui-kit:buildreste à passer — la CI de PR le couvre.🤖 Generated with Claude Code