Skip to content

Commit

Permalink
fix(buttons,toggles): border and background color when active 147629 #…
Browse files Browse the repository at this point in the history
  • Loading branch information
ichim-david committed Apr 4, 2022
2 parents a24d846 + bfc4c51 commit ea36f31
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
24 changes: 13 additions & 11 deletions theme/themes/eea/elements/button.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,19 @@
}

/* Global Button Styles */
.ui.button,
.ui.buttons .button,
.ui.buttons {
border: @buttonBorder @backgroundColor;

&:hover,
&:active,
&:focus {
border-color: @hoverBackgroundColor;
}
}
// 147629 to remove later, basic buttons don't need borders, svg buttons are
// basic and volto ui has elements that are highlighted because of it
//.ui.button,
//.ui.buttons .button,
//.ui.buttons {
// border: @buttonBorder @backgroundColor;
//
// &:hover,
// &:active,
// &:focus {
// border-color: @hoverBackgroundColor;
// }
//}

/* Primary Button Border */
.ui.button.primary,
Expand Down
2 changes: 1 addition & 1 deletion theme/themes/eea/elements/button.variables
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@
@basicBackground: transparent none;
@basicFontWeight: @normal;
@basicBorder: 1px solid @borderColor;
@basicBoxShadow: 0px 0px 0px @basicBorderSize @textColor inset;
@basicBoxShadow: none; // remove basic box shadow by default
@basicLoadingColor: @offWhite;
@basicTextTransform: none;

Expand Down
4 changes: 2 additions & 2 deletions theme/themes/eea/modules/checkbox.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
}

/* Checkbox */
.ui.checkbox {
.ui.checkbox:not(.toggle) {
margin-bottom: @bottomMargin;

input {
&:checked ~ label {
&:after {
// background-color: @primaryColor;
background-color: @primaryColor;
font-family: Checkbox;
}
}
Expand Down

0 comments on commit ea36f31

Please sign in to comment.