Skip to content

Commit b4262e2

Browse files
committed
Add transparent button style
1 parent afcc745 commit b4262e2

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

app/javascript/css/components/button.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,27 @@
5555
background-color: var(--joy-button-tertiary-active);
5656
}
5757
}
58+
&.transparent {
59+
color: inherit;
60+
border: 1px solid var(--joy-button-transparent-active);
61+
background-color: var(--joy-button-transparent);
62+
&:hover {
63+
background-color: var(--joy-button-transparent-hover);
64+
}
65+
&:active {
66+
background-color: var(--joy-button-transparent-active);
67+
}
68+
}
69+
&.tertiary {
70+
border: 1px solid var(--joy-button-tertiary);
71+
background-color: var(--joy-button-tertiary);
72+
&:hover {
73+
background-color: var(--joy-button-tertiary-hover);
74+
}
75+
&:active {
76+
background-color: var(--joy-button-tertiary-active);
77+
}
78+
}
5879
&.warn {
5980
background-color: var(--joy-button-warn);
6081
&:hover {

app/javascript/css/config/theme.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@
8585
--joy-button-tertiary: var(--color-slate-500);
8686
--joy-button-tertiary-hover: var(--color-slate-600);
8787
--joy-button-tertiary-active: var(--color-slate-700);
88+
--joy-button-transparent: none;
89+
--joy-button-transparent-hover: var(--joy-color-100);
90+
--joy-button-transparent-active: var(--joy-color-200);
8891
--joy-button-warn: var(--color-red-500);
8992
--joy-button-warn-hover: var(--color-red-400);
9093
}
@@ -123,4 +126,8 @@
123126
--joy-link-visited: var(--joy-link-3);
124127
--joy-link-decoration: var(--joy-link-8);
125128
--joy-link-active: var(--joy-link-5);
129+
130+
--joy-button-transparent: none;
131+
--joy-button-transparent-hover: var(--joy-color-950);
132+
--joy-button-transparent-active: var(--joy-color-900);
126133
}

0 commit comments

Comments
 (0)