Skip to content

fix(x-components): allow to config the accesibility labels - #2181

Open
Turito wants to merge 4 commits into
mainfrom
fix/ENG-1610-config-accesibility-labels
Open

Turito wants to merge 4 commits into
mainfrom
fix/ENG-1610-config-accesibility-labels

Conversation

@Turito

@Turito Turito commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

JIRA: https://searchbroker.atlassian.net/browse/ENG-2040

Example for consume app (add in a component):

import { AriaLabels, mergeAccesibilityLabels } from '@empathyco/x-components'
import { provide } from 'vue'

const i18n = useI18n()

const accesibilityLabels = {
    PageSelector: {
      pagination: i18n.t('accesibility.PageSelector.pagination'),
      prevPage: i18n.t('accesibility.PageSelector.prevPage'),
      nextPage: i18n.t('accesibility.PageSelector.nextPage'),
      numberPage: (page: number) => i18n.t('accesibility.PageSelector.numberPage', { page }),
    },
    BaseDropdown: {
      toggleButton: i18n.t('accesibility.BaseDropdown.toggleButton'),
    },
    BaseColumnPickerList: {
      button: (page: number) => i18n.t('accesibility.BaseColumnPickerList.button', { page }),
    },
    SearchInput: {
      input: i18n.t('accesibility.SearchInput.input'),
    },
  } as AriaLabels

  provide('accesibility', mergeAccesibilityLabels(accesibilityLabels))

@Turito
Turito requested a review from a team as a code owner October 2, 2026 13:33
lauramargar
lauramargar previously approved these changes Oct 5, 2026
Comment thread .gitignore Outdated
@Turito
Turito force-pushed the fix/ENG-1610-config-accesibility-labels branch 7 times, most recently from 565b3f0 to ee0fa66 Compare October 7, 2026 07:31
@Turito
Turito force-pushed the fix/ENG-1610-config-accesibility-labels branch 2 times, most recently from ef1b294 to 787a7d4 Compare October 7, 2026 16:48
@Turito
Turito force-pushed the fix/ENG-1610-config-accesibility-labels branch from 787a7d4 to d453720 Compare October 7, 2026 17:12
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