Skip to content

Commit

Permalink
fix(button): fix focused style on pseudo button (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
Astero-lol authored and GREENpoint committed Jul 12, 2017
1 parent 01296ca commit a0564fa
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
7 changes: 5 additions & 2 deletions src/button/button_theme_alfa-on-color.css
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,14 @@
border-style: dashed;

&.button_focused {
border-color: var(--color-content-alfa-on-color);
border-style: solid;
border-color: var(--color-content-alfa-on-color);

box-shadow: 0 0 0 1px rgba(255, 255, 255, .9);

&.button_hovered {
border-style: dashed;
box-shadow: 0 0 0 1px rgba(255, 255, 255, .7);
border-color: rgba(255, 255, 255, .7);
}
}
}
Expand Down
5 changes: 4 additions & 1 deletion src/button/button_theme_alfa-on-white.css
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,11 @@
border-color: var(--color-content-alfa-on-white);
border-style: solid;

box-shadow: 0 0 0 1px rgba(0, 0, 0, .9);

&.button_hovered {
border-style: dashed;
border-color: rgba(0, 0, 0, .7);
box-shadow: 0 0 0 1px rgba(0, 0, 0, .7);
}
}
}
Expand Down
7 changes: 5 additions & 2 deletions src/button/fantasy/button_theme_alfa-on-color.css
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,14 @@
border-style: dashed;

&.button_focused {
border-color: var(--color-content-alfa-on-color);
border-style: solid;
border-color: var(--color-content-alfa-on-color);

box-shadow: 0 0 0 1px rgba(255, 255, 255, .9);

&.button_hovered {
border-style: dashed;
box-shadow: 0 0 0 1px rgba(255, 255, 255, .7);
border-color: rgba(255, 255, 255, .7);
}
}
}
Expand Down
5 changes: 4 additions & 1 deletion src/button/fantasy/button_theme_alfa-on-white.css
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,11 @@
border-color: var(--color-content-alfa-on-white);
border-style: solid;

box-shadow: 0 0 0 1px rgba(0, 0, 0, .9);

&.button_hovered {
border-style: dashed;
border-color: rgba(0, 0, 0, .7);
box-shadow: 0 0 0 1px rgba(0, 0, 0, .7);
}
}
}
Expand Down

0 comments on commit a0564fa

Please sign in to comment.