Skip to content

Commit

Permalink
Separate focus halo and link color vars
Browse files Browse the repository at this point in the history
  • Loading branch information
indigoxela committed Jan 19, 2025
1 parent 86372d2 commit 25756f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
--bedrock-font: 1rem/1.5 sans-serif;
--bedrock-text-color: #444;
--bedrock-link-color: #116e9b;
--bedrock-focus-halo-color: #539fc4;
--bedrock-bg-color: #fafafa;
--bedrock-bg-color-highlight: #fff;
--bedrock-bg-color-secondary: #f0f0f0;
Expand Down Expand Up @@ -36,16 +37,16 @@ button:focus-visible,
[type="button"]:focus-visible,
[type="reset"]:focus-visible,
[type="submit"]:focus-visible {
outline: 2px solid var(--bedrock-link-color);
outline: 2px solid var(--bedrock-focus-halo-color);
}
input:focus,
select:focus,
textarea:focus {
outline: 2px solid var(--bedrock-link-color);
outline: 2px solid var(--bedrock-focus-halo-color);
box-shadow: none;
}
.tox .tox-edit-area::before {
border-color: var(--bedrock-link-color) !important;
border-color: var(--bedrock-focus-halo-color) !important;
}
p {
margin: 1em 0;
Expand Down
6 changes: 3 additions & 3 deletions css/bedrock-ui.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ a.button {
}
input.form-submit:focus-visible,
.form-actions input:focus-visible {
outline: 2px solid var(--bedrock-link-color);
outline: 2px solid var(--bedrock-focus-halo-color);
}
input.button-primary {
background: var(--bedrock-link-color);
Expand Down Expand Up @@ -532,7 +532,7 @@ body .tox .tox-textfield, .tox .tox-toolbar-textfield {
.image-library-choose-file.image-library-image-selected {
border: none;
background: var(--bedrock-bg-color-secondary);
outline: 3px solid var(--bedrock-link-color);
outline: 3px solid var(--bedrock-focus-halo-color);
}
.image-library-choose-file .image-library-image {
display: inline;
Expand Down Expand Up @@ -636,7 +636,7 @@ div.node-preview-banner-form {
border-color: var(--bedrock-border-color);
}
.js .dropbutton-widget:focus-within {
outline: 2px solid var(--bedrock-link-color);
outline: 2px solid var(--bedrock-focus-halo-color);
}
.dropbutton-widget,
.dropbutton-widget * {
Expand Down

0 comments on commit 25756f0

Please sign in to comment.