diff --git a/lib/block-supports/colors.php b/lib/block-supports/colors.php index 0ccc3e9823c7a..06c6649a1cd4d 100644 --- a/lib/block-supports/colors.php +++ b/lib/block-supports/colors.php @@ -81,7 +81,7 @@ function gutenberg_apply_colors_support( $block_type, $block_attributes ) { $classes = array(); $styles = array(); - // Text Colors. + // Text colors. // Check support for text colors. if ( $has_text_colors_support ) { $has_named_text_color = array_key_exists( 'textColor', $block_attributes ); @@ -117,7 +117,7 @@ function gutenberg_apply_colors_support( $block_type, $block_attributes ) { } } - // Background Colors. + // Background colors. if ( $has_background_colors_support ) { $has_named_background_color = array_key_exists( 'backgroundColor', $block_attributes ); $has_custom_background_color = isset( $block_attributes['style']['color']['background'] ); diff --git a/packages/block-editor/src/components/colors/use-colors.js b/packages/block-editor/src/components/colors/use-colors.js index 87f7f2278a1e5..3d4cbf717ad5e 100644 --- a/packages/block-editor/src/components/colors/use-colors.js +++ b/packages/block-editor/src/components/colors/use-colors.js @@ -35,8 +35,8 @@ function getComputedStyle( node ) { const DEFAULT_COLORS = []; const COMMON_COLOR_LABELS = { - textColor: __( 'Text Color' ), - backgroundColor: __( 'Background Color' ), + textColor: __( 'Text color' ), + backgroundColor: __( 'Background color' ), }; const InspectorControlsColorPanel = ( props ) => ( @@ -48,7 +48,7 @@ const InspectorControlsColorPanel = ( props ) => ( export default function __experimentalUseColors( colorConfigs, { - panelTitle = __( 'Color settings' ), + panelTitle = __( 'Color' ), colorPanelProps, contrastCheckers, panelChildren, @@ -58,7 +58,7 @@ export default function __experimentalUseColors( textColorTargetRef = targetRef, } = {}, } = { - panelTitle: __( 'Color settings' ), + panelTitle: __( 'Color' ), }, deps = [] ) { diff --git a/packages/block-editor/src/hooks/color-panel.js b/packages/block-editor/src/hooks/color-panel.js index 9b5f49cce723c..9b93203b3d265 100644 --- a/packages/block-editor/src/hooks/color-panel.js +++ b/packages/block-editor/src/hooks/color-panel.js @@ -55,7 +55,7 @@ export default function ColorPanel( { return ( diff --git a/packages/block-editor/src/hooks/color.js b/packages/block-editor/src/hooks/color.js index d8821b16713f3..431e1956989ac 100644 --- a/packages/block-editor/src/hooks/color.js +++ b/packages/block-editor/src/hooks/color.js @@ -327,7 +327,7 @@ export function ColorEdit( props ) { ...( hasTextColorSupport( blockName ) ? [ { - label: __( 'Text Color' ), + label: __( 'Text color' ), onColorChange: onChangeColor( 'text' ), colorValue: getColorObjectByAttributeValues( colors, @@ -340,7 +340,7 @@ export function ColorEdit( props ) { ...( hasBackground || hasGradient ? [ { - label: __( 'Background Color' ), + label: __( 'Background color' ), onColorChange: hasBackground ? onChangeColor( 'background' ) : undefined, diff --git a/packages/block-library/src/button/color-edit.js b/packages/block-library/src/button/color-edit.js index e5611a97aee69..e1ea55bf744e6 100644 --- a/packages/block-library/src/button/color-edit.js +++ b/packages/block-library/src/button/color-edit.js @@ -68,9 +68,7 @@ function ColorPanel( { settings, clientId, enableContrastChecking = true } ) { const [ detectedBackgroundColor, setDetectedBackgroundColor ] = useState(); const [ detectedColor, setDetectedColor ] = useState(); - const title = isWebPlatform - ? __( 'Color settings' ) - : __( 'Color Settings' ); + const title = __( 'Color' ); useEffect( () => { if ( isWebPlatform && ! enableContrastChecking ) { @@ -209,7 +207,7 @@ function ColorEdit( props ) { const settings = useMemo( () => { return [ { - label: __( 'Text Color' ), + label: __( 'Text color' ), onColorChange: onChangeColor( 'text' ), colorValue: getColorObjectByAttributeValues( colors, @@ -218,7 +216,7 @@ function ColorEdit( props ) { ).color, }, { - label: __( 'Background Color' ), + label: __( 'Background color' ), onColorChange: onChangeColor( 'background' ), colorValue: getColorObjectByAttributeValues( colors, diff --git a/packages/block-library/src/pullquote/edit.js b/packages/block-library/src/pullquote/edit.js index 709f374510874..40f096e86f062 100644 --- a/packages/block-library/src/pullquote/edit.js +++ b/packages/block-library/src/pullquote/edit.js @@ -160,7 +160,7 @@ function PullQuoteEdit( { { Platform.OS === 'web' && ( ( { const COLOR_INPUT_FIELD_SELECTOR = '.components-color-palette__picker .components-text-control__input'; const COLOR_PANEL_TOGGLE_X_SELECTOR = - "//button[./span[contains(text(),'Color settings')]]"; + "//button[./span[contains(text(),'Color')]]"; beforeEach( async () => { await createNewPost();