Skip to content

Commit 6e169f3

Browse files
committed
Button and button focus design improvements
1 parent c5df544 commit 6e169f3

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

assets/styles/default-color.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
--pico-primary-hover-background: var(--cust-magenta-pale);
3030
--pico-primary-hover-border: var(--pico-primary-hover-background);
3131
--pico-primary-hover-underline: var(--pico-primary-hover);
32-
--pico-primary-focus: var(--cust-yellow-pale);
32+
--pico-primary-focus: var(--pico-primary);
3333
--pico-primary-inverse: var(--cust-white);
3434
--pico-secondary: var(--cust-orange);
3535
--pico-secondary-background: var(--cust-orange);
@@ -70,7 +70,7 @@
7070
--pico-del-color: rgb(136, 56.5, 53);
7171
--pico-blockquote-border-color: var(--pico-muted-border-color);
7272
--pico-blockquote-footer-color: var(--pico-muted-color);
73-
--pico-button-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
73+
--pico-button-box-shadow: var(--pico-group-box-shadow);
7474
--pico-button-hover-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
7575
--pico-table-border-color: var(--pico-muted-border-color);
7676
--pico-table-row-stripped-background-color: rgba(111, 120, 135, 0.0375);

assets/styles/default-core.css

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
--pico-font-weight: 400;
1414
--pico-font-size: 100%;
1515
--pico-text-underline-offset: 0.125rem;
16-
--pico-border-radius: 0.625rem;
16+
--pico-border-radius: 0.6em;
1717
--pico-border-width: 0.125rem;
1818
--pico-outline-width: 0.125rem;
1919
--pico-transition: 0.2s ease-in-out;
@@ -253,9 +253,13 @@ details summary[role="button"]:not(.outline)::after {
253253
filter: brightness(0) invert(1);
254254
}
255255

256-
[role="button"],
257-
button {
258-
--pico-font-weight: 600;
256+
button, [type=submit], [type=button], [role=button] {
257+
--pico-font-weight: 500;
258+
}
259+
260+
:is(button, [type=submit], [type=button], [role=button]).outline {
261+
color: var(--cust-black);
262+
background-color: var(--cust-white);
259263
}
260264

261265
/* custom large button */

0 commit comments

Comments
 (0)