Skip to content

Commit

Permalink
fix(ui5-button): adjust focus outline (#10068)
Browse files Browse the repository at this point in the history
Issue:

- There was a double focus outline for the Emphasized button with the Quartz theme.

Fixes: #9894
  • Loading branch information
unazko authored and kgogov committed Oct 30, 2024
1 parent 342a6d6 commit 1d1a09b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/main/src/themes/sap_fiori_3/Button-parameters.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
--_ui5_button_icon_font_size: 1rem;
--_ui5_button_text_shadow: none;
--_ui5_button_emphasized_focused_border: 0.0625rem dotted var(--sapContent_ContrastFocusColor);
--_ui5_button_emphasized_focused_border_before: 0.0625rem solid var(--sapContent_FocusColor);
--_ui5_button_emphasized_focused_border_before: unset;
--_ui5_button_emphasized_outline: 1px solid var(--sapContent_FocusColor);
--_ui5_button_emphasized_focused_border_color: var(--sapContent_ContrastFocusColor);
--_ui5_button_emphasized_focused_active_border_color: var(--sapContent_ContrastFocusColor);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
--_ui5_button_icon_font_size: 1rem;
--_ui5_button_text_shadow: none;
--_ui5_button_emphasized_focused_border: 0.0625rem dotted var(--sapContent_ContrastFocusColor);
--_ui5_button_emphasized_focused_border_before: 0.0625rem solid var(--sapContent_FocusColor);
--_ui5_button_emphasized_focused_border_before: unset;
--_ui5_button_emphasized_outline: 1px solid var(--sapContent_FocusColor);
--_ui5_button_emphasized_focused_border_color: var(--sapContent_ContrastFocusColor);
--_ui5_button_emphasized_focused_active_border_color: var(--sapContent_ContrastFocusColor);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
:root {
--_ui5_button_focused_border: 0.125rem dotted var(--sapContent_FocusColor);
--_ui5_button_focused_border_radius: 0.25rem;
--_ui5_button_emphasized_focused_border_before: var(--_ui5_button_focused_border);
--_ui5_button_focus_width: 1px;
--_ui5_button_text_shadow: none;
--_ui5_button_emphasized_outline: 0.125rem dotted var(--sapContent_FocusColor);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
:root {
--_ui5_button_focused_border: 0.125rem dotted var(--sapContent_FocusColor);
--_ui5_button_focused_border_radius: 0.25rem;
--_ui5_button_emphasized_focused_border_before: var(--_ui5_button_focused_border);
--_ui5_button_focus_width: 1px;
--_ui5_button_text_shadow: none;
--_ui5_button_emphasized_outline: 0.125rem dotted var(--sapContent_FocusColor);
Expand Down

0 comments on commit 1d1a09b

Please sign in to comment.