Skip to content

Commit

Permalink
Move to mixins in base-styles
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Feb 29, 2024
1 parent af0f332 commit 6ade827
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
9 changes: 9 additions & 0 deletions packages/base-styles/_mixins.scss
Expand Up @@ -367,6 +367,15 @@
}
}

@mixin link-reset {
&:focus {
color: var(--wp-admin-theme-color--rgb);
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color, #007cba);
border-radius: $radius-block-ui;
}
}

// The editor input reset with increased specificity to avoid theme styles bleeding in.
@mixin editor-input-reset() {
font-family: $editor-html-font !important;
Expand Down
7 changes: 1 addition & 6 deletions packages/dataviews/src/style.scss
Expand Up @@ -219,7 +219,6 @@
color: $gray-900;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
display: block;
width: 100%;

Expand All @@ -235,11 +234,7 @@
&:hover {
color: $gray-900;
}
&:focus {
color: var(--wp-admin-theme-color--rgb);
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));
border-radius: $radius-block-ui;
}
@include link-reset();
}

button.components-button.is-link {
Expand Down

0 comments on commit 6ade827

Please sign in to comment.