Skip to content

Commit

Permalink
fix(a11y): color preview fields have no aria label
Browse files Browse the repository at this point in the history
Signed-off-by: Sami Mazouz <[email protected]>
  • Loading branch information
SychO9 committed Jul 19, 2022
1 parent 6b577e6 commit 8c9066d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,13 @@ export default class AppearancePage extends AdminPage {
type: 'color-preview',
setting: 'theme_primary_color',
placeholder: '#aaaaaa',
ariaLabel: app.translator.trans('core.admin.appearance.colors_primary_label'),
})}
{this.buildSettingComponent({
type: 'color-preview',
setting: 'theme_secondary_color',
placeholder: '#aaaaaa',
ariaLabel: app.translator.trans('core.admin.appearance.colors_secondary_label'),
})}
</div>,
70
Expand Down
2 changes: 2 additions & 0 deletions framework/core/locale/core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ core:
appearance:
colored_header_label: Colored Header
colors_heading: Colors
colors_primary_label: Primary Color
colors_secondary_label: Secondary Color
colors_text: "Choose two colors to theme your forum with. The first will be used as a highlight color, while the second will be used to style background elements."
custom_footer_heading: Custom Footer
custom_footer_text: => core.ref.custom_footer_text
Expand Down

0 comments on commit 8c9066d

Please sign in to comment.