Skip to content

Commit

Permalink
chore(lint): fix more linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan committed Jul 7, 2020
1 parent 6237331 commit 87ab11c
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,6 @@
.#{$prefix}--data-table--short td.#{$prefix}--table-column-menu {
padding-top: 0;
padding-bottom: 0;
}

.#{$prefix}--data-table--compact td.#{$prefix}--table-column-menu,
.#{$prefix}--data-table--short td.#{$prefix}--table-column-menu {
height: rem(24px);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
// -------------------------------------
.#{$prefix}--table-sort {
@include button-reset(false);

font: inherit;
line-height: 1;
display: flex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ $css--helpers: true;
.#{$prefix}--unstable-pagination {
@include reset;
@include carbon--type-style('body-short-01');

width: 100%;
background-color: $ui-01;
display: flex;
Expand Down Expand Up @@ -70,6 +71,7 @@ $css--helpers: true;

.#{$prefix}--unstable-pagination__button {
@include reset;

border: none;
border-left: 1px solid $ui-03;
background: none;
Expand All @@ -80,16 +82,16 @@ $css--helpers: true;
display: flex;
justify-content: center;
align-items: center;
color: $ui-05; // for currentColor
color: $ui-05;
fill: $ui-05;
transition: outline $duration--fast-02 motion(standard, productive);
transition: background-color $duration--fast-02 motion(standard, productive);
transition: outline $duration--fast-02 motion(standard, productive),
background-color $duration--fast-02 motion(standard, productive);
}

// Unset height/width set by icon-only button:
.#{$prefix}--unstable-pagination__button .#{$prefix}--btn__icon {
height: unset;
width: unset;
height: initial;
width: initial;
}

.#{$prefix}--unstable-pagination__button.#{$prefix}--btn--icon-only.#{$prefix}--tooltip__trigger:focus {
Expand Down Expand Up @@ -135,6 +137,7 @@ $css--helpers: true;
.#{$prefix}--unstable-pagination__page-selector .#{$prefix}--select-input,
.#{$prefix}--unstable-pagination__page-sizer .#{$prefix}--select-input {
@include carbon--type-style('body-short-01');

width: auto;
min-width: auto;
height: 100%;
Expand Down
12 changes: 0 additions & 12 deletions packages/components/src/components/ui-shell/_theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ $shell-header-bg-01: $carbon--gray-100;
/// @type Color
/// @access private
/// @group ui-shell
<<<<<<< HEAD
/// TODO needs color var gray-100-hover
=======
//TODO needs color var gray-100-hover
>>>>>>> chore(lint): clear rest of stylelint errors
$shell-header-bg-02: #2c2c2c;

/// Header action active background
Expand All @@ -37,11 +33,7 @@ $shell-header-bg-03: $carbon--gray-80;
/// @type Color
/// @access private
/// @group ui-shell
<<<<<<< HEAD
/// TODO needs color var gray-90-hover
=======
//TODO needs color var gray-90-hover
>>>>>>> chore(lint): clear rest of stylelint errors
$shell-header-bg-04: #353535;

/// Header nav link active and focus background
Expand Down Expand Up @@ -118,11 +110,7 @@ $shell-panel-bg-01: $carbon--gray-100;
/// @type Color
/// @access private
/// @group ui-shell
<<<<<<< HEAD
/// TODO needs color var gray-100-hover
=======
//TODO needs color var gray-100-hover
>>>>>>> chore(lint): clear rest of stylelint errors
$shell-panel-bg-02: #2c2c2c;

/// Panel item focus and active background
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/globals/scss/_css--body.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
body {
@include reset;
@include type-style('body-short-01');

color: $text-01;
background-color: $ui-background;
line-height: 1;
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/globals/scss/_css--helpers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
.#{$prefix}--body {
@include reset;
@include type-style('body-short-01');

color: $text-01;
background-color: $ui-background;
line-height: 1;
Expand Down
15 changes: 7 additions & 8 deletions packages/components/src/globals/scss/_css--reset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
vertical-align: baseline;

*,
*:before,
*:after {
*::before,
*::after {
box-sizing: inherit;
}
}
Expand Down Expand Up @@ -117,8 +117,8 @@
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
font-size: 100%;
vertical-align: baseline;
}

Expand Down Expand Up @@ -173,12 +173,11 @@
quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
blockquote::before,
blockquote::after,
q::before,
q::after {
content: '';
content: none;
}

table {
Expand Down
3 changes: 2 additions & 1 deletion packages/components/src/globals/scss/_helper-mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
/// @group global-helpers
@mixin button-reset($width: true) {
@include reset;

display: inline-block;
background: none;
appearance: none;
Expand Down Expand Up @@ -165,7 +166,7 @@
cursor: default;
}

&:before {
&::before {
content: '';
width: 0%;
height: 100%;
Expand Down
2 changes: 0 additions & 2 deletions packages/components/src/globals/scss/_tooltip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,6 @@
// @todo Simplify CSS selectors on next major release
&::after,
.#{$prefix}--assistive-text,
.#{$prefix}--assistive-text,
+ .#{$prefix}--assistive-text,
+ .#{$prefix}--assistive-text {
@if ($position == 'top') {
top: -$body-spacing;
Expand Down

0 comments on commit 87ab11c

Please sign in to comment.