Skip to content

Commit

Permalink
Rename solid color (#42918)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen authored Aug 3, 2022
1 parent bd2da93 commit 38e5599
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const colorsAndGradientKeys = [

const TAB_COLOR = {
name: 'color',
title: 'Solid color',
title: 'Solid',
value: 'color',
};
const TAB_GRADIENT = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ describe( 'ColorPaletteControl', () => {

// Is showing the two tab buttons.
expect(
screen.getByRole( 'tab', { name: 'Solid color' } )
screen.getByRole( 'tab', { name: 'Solid' } )
).toBeInTheDocument();
expect(
screen.getByRole( 'tab', { name: 'Gradient' } )
Expand Down Expand Up @@ -86,7 +86,7 @@ describe( 'ColorPaletteControl', () => {

// Is not showing the two tab buttons.
expect(
screen.queryByRole( 'tab', { name: 'Solid color' } )
screen.queryByRole( 'tab', { name: 'Solid' } )
).not.toBeInTheDocument();
expect(
screen.queryByRole( 'tab', { name: 'Gradient' } )
Expand Down Expand Up @@ -133,7 +133,7 @@ describe( 'ColorPaletteControl', () => {

// Is not showing the two tab buttons.
expect(
screen.queryByRole( 'tab', { name: 'Solid color' } )
screen.queryByRole( 'tab', { name: 'Solid' } )
).not.toBeInTheDocument();
expect(
screen.queryByRole( 'tab', { name: 'Gradient' } )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function ScreenColorPalette( { name } ) {
tabs={ [
{
name: 'solid',
title: 'Solid color',
title: 'Solid',
value: 'solid',
},
{
Expand Down

0 comments on commit 38e5599

Please sign in to comment.