canon: use inset box-shadows for button styles
The use of box-shadows for button borders meant that when a button was styled with a border, it expanded by 1px. This commit retains the use of shadows for borders, but switches them to inset shadows so that the component size stays consistent between buttons with and without borders (and between the same button in hover and non-hover states). Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
This commit is contained in:
@@ -36,18 +36,18 @@
|
||||
|
||||
.button.primary:hover {
|
||||
background-color: transparent;
|
||||
box-shadow: 0 0 0 1px var(--canon-outline-focus);
|
||||
box-shadow: inset 0 0 0 1px var(--canon-outline-focus);
|
||||
color: var(--canon-text-primary);
|
||||
}
|
||||
|
||||
.button.secondary {
|
||||
background-color: transparent;
|
||||
box-shadow: 0 0 0 1px var(--canon-outline);
|
||||
box-shadow: inset 0 0 0 1px var(--canon-outline);
|
||||
color: var(--canon-text-primary);
|
||||
}
|
||||
|
||||
.button.secondary:hover {
|
||||
box-shadow: 0 0 0 1px var(--canon-outline-hover);
|
||||
box-shadow: inset 0 0 0 1px var(--canon-outline-hover);
|
||||
}
|
||||
|
||||
.button.tertiary {
|
||||
|
||||
Reference in New Issue
Block a user