Skip to content

Commit d07922e

Browse files
authored
Fix invalid CSS on hyperlink focus outline (playfulprogramming#1214)
The focus outlines on hyperlinks aren't currently working when tab-focused - the SCSS functions aren't being recognized and are ending up in the CSS output: ```css .post-body a:focus-visible:not([class]) { outline: pxToRem(3.5) solid var(--focus-outline_primary); outline-offset: pxToRem(1.5); border-radius: calc(var(--border-width_focus)/2); } ``` This PR replaces every `@use "src/tokens/index";` with `@use "src/tokens/index" as *;`. Most of these instances don't use any functions/variables from the import, but should help avoid future issues.
2 parents ed4318e + d7f301b commit d07922e

File tree

12 files changed

+12
-12
lines changed

12 files changed

+12
-12
lines changed

src/components/checkbox-box/checkbox-box.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@use "src/tokens/index";
1+
@use "src/tokens/index" as *;
22

33
:root {
44
--animTiming: 300ms ease-in-out;

src/components/input/input.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@use "src/tokens/index";
1+
@use "src/tokens/index" as *;
22

33
:root {
44
--form-label_padding: var(--spc-2x);

src/components/pagination/pagination-popover.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@use "src/tokens/index";
1+
@use "src/tokens/index" as *;
22

33
:root {
44
--page-popup_padding: var(--spc-6x);

src/components/related-posts/related-posts.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@use "src/tokens/index";
1+
@use "src/tokens/index" as *;
22

33
.relatedPostsHeader {
44
margin: 0;

src/components/search-section/search-section.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@use "src/tokens/index";
1+
@use "src/tokens/index" as *;
22

33
:root {
44
--search-section_padding-vertical: calc(var(--site-spacing) * 2);

src/styles/container.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@use "src/tokens/index";
1+
@use "src/tokens/index" as *;
22

33
.container {
44
margin: 0 auto;

src/styles/markdown/base.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@use "src/tokens/index";
1+
@use "src/tokens/index" as *;
22
@use "../text-styles.scss";
33

44
:where(a) {

src/styles/markdown/codeblock.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@use "src/tokens/index";
1+
@use "src/tokens/index" as *;
22
@use "src/styles/text-styles";
33

44
:root {

src/styles/markdown/lists.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@use "src/tokens/index";
1+
@use "src/tokens/index" as *;
22
@use "src/styles/text-styles.scss";
33

44
:root {

src/styles/text-styles.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@use "src/tokens/index";
1+
@use "src/tokens/index" as *;
22

33
@font-face {
44
font-family: "Figtree";

0 commit comments

Comments
 (0)