Skip to content

Commit

Permalink
fix(Stylelint): revert accidental modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan committed Oct 2, 2023
1 parent 46be5de commit 60ded6d
Show file tree
Hide file tree
Showing 11 changed files with 1,527 additions and 1,443 deletions.
2,896 changes: 1,486 additions & 1,410 deletions packages/styles/scss/__tests__/__snapshots__/type-test.js.snap

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
}

svg {
fill: currentcolor;
fill: currentColor;
}

&:focus {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
}

.#{$prefix}--pagination-nav__icon {
fill: currentcolor;
fill: currentColor;
pointer-events: none;
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/styles/scss/components/popover/_popover.scss
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ $popover-caret-height: custom-property.get-var(
.#{$prefix}--popover--tab-tip.#{$prefix}--popover--open
.#{$prefix}--popover--tab-tip__button {
background: theme.$layer;
box-shadow: 0 2px 2px rgb(0 0 0 / 20%);
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
}

.#{$prefix}--popover--tab-tip.#{$prefix}--popover--open
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

.#{$prefix}--progress-bar__bar {
display: block;
background-color: currentcolor;
background-color: currentColor;
block-size: 100%;
color: $interactive;
inline-size: 100%;
Expand Down
2 changes: 1 addition & 1 deletion packages/styles/scss/components/search/_search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
margin-inline-start: $spacing-01;

svg {
fill: currentcolor;
fill: currentColor;
vertical-align: middle;
}
}
Expand Down
24 changes: 16 additions & 8 deletions packages/styles/scss/components/tabs/_tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,11 @@
.#{$prefix}--tab--overflow-nav-button--next::before {
position: absolute;
z-index: 1;
background: linear-gradient(to right, rgb(255 255 255 / 0%), $background);
background: linear-gradient(
to right,
rgba(255, 255, 255, 0),
$background
);
block-size: 100%;
content: '';
inline-size: $spacing-03;
Expand All @@ -136,7 +140,7 @@
.#{$prefix}--tab--overflow-nav-button--next::before {
background-image: linear-gradient(
to right,
rgb(255 255 255 / 0%),
rgba(255, 255, 255, 0),
$layer-accent
);
}
Expand All @@ -151,7 +155,7 @@
.#{$prefix}--tab--overflow-nav-button--previous::before {
position: absolute;
z-index: 1;
background: linear-gradient(to left, rgb(255 255 255 / 0%), $background);
background: linear-gradient(to left, rgba(255, 255, 255, 0), $background);
block-size: 100%;
content: '';
inline-size: $spacing-03;
Expand All @@ -162,35 +166,39 @@
.#{$prefix}--tab--overflow-nav-button--previous::before {
background-image: linear-gradient(
to left,
rgb(255 255 255 / 0%),
rgba(255, 255, 255, 0),
$layer-accent
);
}

.#{$prefix}--tabs--light .#{$prefix}--tabs__overflow-indicator--left {
background-image: linear-gradient(to left, rgb(255 255 255 / 0%), $layer);
background-image: linear-gradient(
to left,
rgba(255, 255, 255, 0),
$layer
);
}

.#{$prefix}--tabs--light .#{$prefix}--tabs__overflow-indicator--right {
background-image: linear-gradient(
to right,
rgb(255 255 255 / 0%),
rgba(255, 255, 255, 0),
$layer
);
}

&.#{$prefix}--tabs--contained .#{$prefix}--tabs__overflow-indicator--left {
background-image: linear-gradient(
to left,
rgb(255 255 255 / 0%),
rgba(255, 255, 255, 0),
$layer-accent
);
}

&.#{$prefix}--tabs--contained .#{$prefix}--tabs__overflow-indicator--right {
background-image: linear-gradient(
to right,
rgb(255 255 255 / 0%),
rgba(255, 255, 255, 0),
$layer-accent
);
}
Expand Down
8 changes: 4 additions & 4 deletions packages/styles/scss/components/tag/_tag.scss
Original file line number Diff line number Diff line change
Expand Up @@ -188,15 +188,15 @@
margin: 0 0 0 convert.to-rem(2px);
background-color: transparent;
block-size: layout.size('height');
color: currentcolor;
color: currentColor;
cursor: pointer;
inline-size: layout.size('height');
transition:
background-color $duration-fast-01 motion(standard, productive),
box-shadow $duration-fast-01 motion(standard, productive);

svg {
fill: currentcolor;
fill: currentColor;
}
}

Expand All @@ -206,13 +206,13 @@
border: 0;
background-color: transparent;
block-size: convert.to-rem(16px);
color: currentcolor;
color: currentColor;
inline-size: convert.to-rem(16px);
margin-inline-end: $spacing-02;
outline: none;

svg {
fill: currentcolor;
fill: currentColor;
}
}

Expand Down
16 changes: 8 additions & 8 deletions packages/styles/scss/fonts/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
@use './serif';

$-fonts: (
ibm-plex-mono: true,
ibm-plex-sans-arabic: false,
ibm-plex-sans-devanagari: false,
ibm-plex-sans-hebrew: false,
ibm-plex-sans-thai-looped: false,
ibm-plex-sans-thai: false,
ibm-plex-sans: true,
ibm-plex-serif: true,
IBM-Plex-Mono: true,
IBM-Plex-Sans-Arabic: false,
IBM-Plex-Sans-Devanagari: false,
IBM-Plex-Sans-Hebrew: false,
IBM-Plex-Sans-Thai-Looped: false,
IBM-Plex-Sans-Thai: false,
IBM-Plex-Sans: true,
IBM-Plex-Serif: true,
);
$fonts: () !default;
$fonts: map.merge($-fonts, $fonts);
Expand Down
9 changes: 5 additions & 4 deletions packages/styles/scss/utilities/_z-index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@
/// @type Map
/// @group utilities
$z-indexes: (
/* Dropdowns that render outside of a Modal should render above a Modal.*/
/* Dropdowns below the modal will close when the Modal is opened, so*/
/* having a higher z-index *should* not cause issues.*/ dropdown: 9100,
// Dropdowns that render outside of a Modal should render above a Modal.
// Dropdowns below the modal will close when the Modal is opened, so
// having a higher z-index *should* not cause issues.
dropdown: 9100,
modal: 9000,
header: 8000,
overlay: 6000,
floating: 6000,
footer: 5000,
hidden: - 1,
overflowhidden: - 1
overflowHidden: - 1
);

/// @access public
Expand Down
7 changes: 3 additions & 4 deletions packages/type/scss/_styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -846,11 +846,10 @@ $tokens: (
);
$max-vw: map.get($next-fluid-breakpoint, width);

// prettier-ignore
font-size: calc(
#{$min-font-size} +
#{strip-unit($max-font-size - $min-font-size)} *
((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})
#{$min-font-size} +
#{strip-unit($max-font-size - $min-font-size)} *
((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})
);
} @else {
// Otherwise, just default to setting the font size found from the type
Expand Down

0 comments on commit 60ded6d

Please sign in to comment.