Skip to content

Commit

Permalink
Removing obsolete currentColor CSS value (WordPress#14119)
Browse files Browse the repository at this point in the history
* Removing obsolete `currentColor` value

* Removing obsolete `currentColor` from CSS

* Removing obsolete `$black` color so table border inherits text color

* Changing `currentColor` value to `inherit` where appropriate
  • Loading branch information
webmandesign authored and mchowning committed Apr 15, 2019
1 parent 5d3f86e commit 6151b18
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion assets/stylesheets/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@
height: 0;
border-left: 3px solid transparent;
border-right: 3px solid transparent;
border-top: 5px solid currentColor;
border-top: 5px solid;
margin-left: $grid-size-small;

// This gives the icon space on the right side consistent with the material
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
&:hover {
.block-editor-block-types-list__item-icon,
.block-editor-block-types-list__item-title {
color: currentColor;
color: inherit;
}
}

Expand All @@ -60,7 +60,7 @@

.block-editor-block-types-list__item-icon,
.block-editor-block-types-list__item-title {
color: currentColor;
color: inherit;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/button/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ $blocks-button__height: 56px;

.wp-block-button__link {
background-color: transparent;
border: 2px solid currentcolor;
border: 2px solid;
}
}
2 changes: 1 addition & 1 deletion packages/block-library/src/table/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
td,
th {
padding: 0;
border: $border-width solid $black;
border: $border-width solid;
}

td.is-selected,
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/table/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
td,
th {
padding: 0.5em;
border: 1px solid currentColor;
border: 1px solid;
word-break: break-all;
}
}
2 changes: 1 addition & 1 deletion packages/components/src/button/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
}

&:active {
color: currentColor;
color: inherit;
}

&:disabled,
Expand Down

0 comments on commit 6151b18

Please sign in to comment.