Skip to content

Commit

Permalink
Merge pull request #171 from centrica-engineering/hotfix/linting
Browse files Browse the repository at this point in the history
fix: css linting
  • Loading branch information
MekalaNagarajan-Centrica authored Jan 25, 2022
2 parents d1b57b4 + 510d5e1 commit 3d41eb1
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 12 deletions.
10 changes: 7 additions & 3 deletions packages/library/components/cta/src/styles.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '@muons/library/css/default.css';
@import "@muons/library/css/default.css";

:host {
display: inline-block;
Expand Down Expand Up @@ -50,14 +50,18 @@
}

& :focus:not(:focus-visible) {
outline: none; /* https://matthiasott.com/notes/focus-visible-is-here and https://www.tpgi.com/focus-visible-and-backwards-compatibility/ */
/*
https://matthiasott.com/notes/focus-visible-is-here and
https://www.tpgi.com/focus-visible-and-backwards-compatibility/
*/
outline: none;
}

&:focus-visible {
outline: 3px;
outline-color: $CTA_FOCUS_OUTLINE_COLOR;
outline-offset: 0; /* Chrome by default adds a 1px offset on the `<a>` */
outline-style: solid;
outline-width: 3px;
text-decoration: underline;
}

Expand Down
10 changes: 7 additions & 3 deletions packages/library/components/detail/src/styles.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '@muons/library/css/default.css';
@import "@muons/library/css/default.css";

:host {
display: block;
Expand Down Expand Up @@ -42,16 +42,20 @@
}

& :focus:not(:focus-visible) {
outline: none; /* https://matthiasott.com/notes/focus-visible-is-here and https://www.tpgi.com/focus-visible-and-backwards-compatibility/ */
/*
https://matthiasott.com/notes/focus-visible-is-here and
https://www.tpgi.com/focus-visible-and-backwards-compatibility/
*/
outline: none;
}

&:focus-visible {
background-color: $DETAIL_FOCUS_BACKGROUND_COLOR;
color: $DETAIL_FOCUS_COLOR;
outline: 3px;
outline-color: $DETAIL_FOCUS_OUTLINE_COLOR;
outline-offset: 0; /* Chrome by default adds a 1px offset on the `<a>` */
outline-style: solid;
outline-width: 3px;
text-decoration: underline;
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/library/components/icon/src/styles.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '@muons/library/css/default.css';
@import "@muons/library/css/default.css";

:host {
display: inline-block;
Expand Down
6 changes: 3 additions & 3 deletions packages/library/components/image/src/styles.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '@muons/library/css/default.css';
@import "@muons/library/css/default.css";

:host {
display: block;
Expand Down Expand Up @@ -29,7 +29,7 @@
}

& .blur-out {
animation: blurOut 0.5s ease-out;
animation: blur-out 0.5s ease-out;
}

& .image-holder,
Expand Down Expand Up @@ -60,7 +60,7 @@
}
}

@keyframes blurOut {
@keyframes blur-out {
0% {
filter: blur(0.7em);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/library/components/inputter/src/styles.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '@muons/library/css/default.css';
@import "@muons/library/css/default.css";

:host {
display: block;
Expand Down
2 changes: 1 addition & 1 deletion packages/library/css/default.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'accessibility.css';
@import "accessibility.css";

:host {
font-family: $THEME_FONT_FAMILY_DEFAULT;
Expand Down

0 comments on commit 3d41eb1

Please sign in to comment.