Skip to content

Commit aad98df

Browse files
aPreciado88benelan
authored andcommitted
feat(action): enhance component's interactivity states (#11478)
**Related Issue:** [#10007](#10007) ## Summary - Remove `hover` styling from the `focus` state. - Update `active` state `background-color` to `--calcite-color-transparent-press` when `appearance="transparent"`.
1 parent 88a5260 commit aad98df

File tree

1 file changed

+3
-5
lines changed
  • packages/calcite-components/src/components/action

1 file changed

+3
-5
lines changed

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

+3-5
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@
7474
flex: 1 0 auto;
7575
cursor: inherit;
7676

77-
&:hover,
78-
&:focus {
77+
&:hover {
7978
background-color: var(--calcite-action-background-color-hover, var(--calcite-color-foreground-2));
8079
color: var(
8180
--calcite-action-text-color-press,
@@ -163,7 +162,7 @@
163162

164163
:host([appearance="transparent"]) {
165164
&:host([active]) .button {
166-
background-color: var(--calcite-color-transparent-hover);
165+
background-color: var(--calcite-color-transparent-press);
167166
}
168167

169168
.button {
@@ -172,8 +171,7 @@
172171
duration-150
173172
ease-in-out;
174173

175-
&:hover,
176-
&:focus {
174+
&:hover {
177175
background-color: var(--calcite-color-transparent-hover);
178176
}
179177

0 commit comments

Comments
 (0)