Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
Fix missing styles on buttons
Browse files Browse the repository at this point in the history
The <Button> component styles from @wordpress/components were missing color styles. This is due to a change in @wordpress/base-styles where a different technique for providing the default button colors was implemented in WordPress/gutenberg#24408.

As a temporary measure, this restores the previous code by copying it here directly.
  • Loading branch information
adrianduffell committed Oct 23, 2020
1 parent d6c80bb commit 29dd4c1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions client/stylesheets/shared/_gutenberg-components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,16 @@ allows Woo themed components based on the config found in postcss.config.js
@import 'gutenberg-components/tab-panel/style.scss';
@import 'gutenberg-components/guide/style.scss';
@import 'gutenberg-components/animate/style.scss';

/**
Provides colors for the default WordPress admin color scheme.
This code was copied from @wordpress/base-styles, where it was previously
consumed from until a change in https://github.com/WordPress/gutenberg/pull/24408.
This is intended as a temporary measure until the above PR is investigated
further.
*/
:root {
@include admin-scheme(#007cba);
}

0 comments on commit 29dd4c1

Please sign in to comment.