Skip to content

Commit

Permalink
fix(@clayui/css): Cadmin Links .component-action and `.link-outline…
Browse files Browse the repository at this point in the history
…` should have focus shadow
  • Loading branch information
pat270 committed Oct 6, 2022
1 parent 4cd0681 commit d646ef1
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions packages/clay-css/src/scss/cadmin/variables/_links.scss
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,12 @@ $cadmin-link-outline: map-deep-merge(
hover: (
text-decoration: none,
),
focus: (
box-shadow: $cadmin-component-focus-box-shadow,
outline: 0,
),
disabled: (
box-shadow: none,
active: (
pointer-events: none,
),
Expand All @@ -134,9 +139,7 @@ $cadmin-link-outline-primary: map-deep-merge(
),
focus: (
background-color: $cadmin-primary-l3,
box-shadow: map-get($cadmin-btn-outline-primary, focus-box-shadow),
color: $cadmin-primary,
outline: 0,
),
active: (
background-color:
Expand All @@ -145,14 +148,10 @@ $cadmin-link-outline-primary: map-deep-merge(
),
disabled: (
background-color: transparent,
box-shadow: none,
color: $cadmin-primary,
cursor: $cadmin-btn-disabled-cursor,
opacity: $cadmin-btn-disabled-opacity,
),
btn-focus-box-shadow:
map-get($cadmin-btn-outline-primary, focus-box-shadow),
btn-focus-outline: 0,
),
$cadmin-link-outline-primary
);
Expand All @@ -168,24 +167,18 @@ $cadmin-link-outline-secondary: map-deep-merge(
),
focus: (
background-color: rgba($cadmin-gray-900, 0.03),
box-shadow: map-get($cadmin-btn-outline-secondary, focus-box-shadow),
color: $cadmin-gray-900,
outline: 0,
),
active: (
background-color: rgba($cadmin-gray-900, 0.06),
color: $cadmin-gray-900,
),
disabled: (
background-color: transparent,
box-shadow: none,
color: $cadmin-secondary,
cursor: $cadmin-btn-disabled-cursor,
opacity: $cadmin-btn-disabled-opacity,
),
btn-focus-box-shadow:
map-get($cadmin-btn-outline-secondary, focus-box-shadow),
btn-focus-outline: 0,
),
$cadmin-link-outline-secondary
);
Expand Down Expand Up @@ -323,7 +316,7 @@ $cadmin-component-action: map-deep-merge(
),
focus: (
background-color: rgba($cadmin-gray-900, 0.03),
box-shadow: map-get($cadmin-btn-secondary, focus-box-shadow),
box-shadow: $cadmin-component-focus-box-shadow,
color: $cadmin-gray-900,
outline: 0,
),
Expand All @@ -341,8 +334,6 @@ $cadmin-component-action: map-deep-merge(
pointer-events: none,
),
),
btn-focus-box-shadow: map-get($cadmin-btn-secondary, focus-box-shadow),
btn-focus-outline: 0,
lexicon-icon: (
margin-top: 0,
),
Expand Down

0 comments on commit d646ef1

Please sign in to comment.