Skip to content

Commit 7d2b61a

Browse files
macandcheesebenelan
authored andcommitted
fix(action): Update transparent action styles (#8194)
**Related Issue:** #3834 ## Summary cc @asangma @SkyeSeitz @ashetland
1 parent 3da2155 commit 7d2b61a

File tree

1 file changed

+8
-14
lines changed
  • packages/calcite-components/src/components/action

1 file changed

+8
-14
lines changed

packages/calcite-components/src/components/action/action.scss

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -160,32 +160,26 @@
160160
}
161161

162162
:host([appearance="transparent"]) .button {
163-
@apply bg-transparent
164-
transition-shadow
165-
duration-150
166-
ease-in-out;
163+
@apply bg-transparent;
167164
}
168165

166+
:host([appearance="transparent"][active]) .button,
169167
:host([appearance="transparent"]) .button:hover,
170168
:host([appearance="transparent"]) .button:focus {
171-
@apply bg-transparent;
172-
box-shadow: 0 0 0 2px theme("borderColor.color.1") inset;
169+
background-color: var(--calcite-button-transparent-hover);
173170
}
174171

175-
:host([active][appearance="transparent"]) .button,
176-
:host([active][appearance="transparent"]) .button:hover,
177-
:host([active][appearance="transparent"]) .button:focus {
178-
@apply text-color-1 fill-color-1 bg-foreground-3;
172+
:host([appearance="transparent"]) .button:active {
173+
background-color: var(--calcite-button-transparent-press);
179174
}
180175

181-
:host([appearance="transparent"][loading]) .button,
182176
:host([appearance="transparent"][disabled]) .button {
183177
@apply bg-transparent;
184178
}
185179

186-
:host([loading]) .button,
187-
:host([loading]) .button:hover,
188-
:host([loading]) .button:focus {
180+
:host([loading][appearance="solid"]) .button,
181+
:host([loading][appearance="solid"]) .button:hover,
182+
:host([loading][appearance="solid"]) .button:focus {
189183
@apply bg-foreground-1;
190184
.text-container {
191185
@apply opacity-disabled;

0 commit comments

Comments
 (0)