Skip to content

Commit

Permalink
Merge pull request #16390 from craftcms/bugfix/style-tweaks
Browse files Browse the repository at this point in the history
focus ring & var style tweaks for 5.6
  • Loading branch information
brandonkelly authored Jan 6, 2025
2 parents c47aed7 + 013392e commit d7f328e
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/web/assets/cp/dist/css/cp.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/web/assets/cp/dist/css/cp.css.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/web/assets/cp/src/css/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
--light-focus-hsl: #{color.hue(mixins.$lightFocusColor)},
#{color.saturation(mixins.$lightFocusColor)},
#{color.lightness(mixins.$lightFocusColor)};
--dark-focus-hsl: #{color.hue(mixins.$darkFocusColor)},
#{color.saturation(mixins.$darkFocusColor)},
#{color.lightness(mixins.$darkFocusColor)};
--focus-ring: 0 0 0 2px var(--focus-ring-color),
0 0 5px 1px
hsl(from var(--focus-ring-color) h s l / var(--focus-ring-alpha));
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/web/assets/craftsupport/src/CraftSupportWidget.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@

.cs-screen-home {
.cs-opt {
--focus-ring: inset 0 0 0 1px hsl(var(--dark-focus-hsl)),
inset 0 0 0 3px hsl(var(--dark-focus-hsl) 0.7);
--focus-ring: inset 0 0 0 1px var(--focus-ring-color),
inset 0 0 0 3px var(--focus-ring-color);
display: block;
padding: 24px;
text-align: center;
Expand Down

0 comments on commit d7f328e

Please sign in to comment.