-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(navbar): add a11y label and clickable logo
- Loading branch information
Showing
4 changed files
with
97 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@baloise/ds-core': minor | ||
--- | ||
|
||
**navbar**: add a11y label for logo and make it clickable |
This file contains 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
38 changes: 38 additions & 0 deletions
38
packages/core/src/components/bal-navbar/bal-navbar-brand/bal-navbar-brand.i18n.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { I18n } from '../../../interfaces' | ||
|
||
export interface I18nBalNavbarBrand { | ||
logoButtonLabel: string | ||
} | ||
|
||
export const i18nBalNavbarBrand: I18n<I18nBalNavbarBrand> = { | ||
en: { | ||
logoButtonLabel: 'To Homepage', | ||
}, | ||
fr: { | ||
logoButtonLabel: 'Vers la page d’accueil', | ||
}, | ||
it: { | ||
logoButtonLabel: 'Alla pagina principale', | ||
}, | ||
nl: { | ||
logoButtonLabel: 'Naar de startpagina', | ||
}, | ||
es: { | ||
logoButtonLabel: 'A la página principal', | ||
}, | ||
pt: { | ||
logoButtonLabel: 'Para a página inicial', | ||
}, | ||
sv: { | ||
logoButtonLabel: 'Till startsidan', | ||
}, | ||
fi: { | ||
logoButtonLabel: 'Etusivulle', | ||
}, | ||
de: { | ||
logoButtonLabel: 'Zur Startseite', | ||
}, | ||
pl: { | ||
logoButtonLabel: 'Na stronę główną', | ||
}, | ||
} |
This file contains 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