Make WordPress Core


Ignore:
Timestamp:
05/13/2025 02:48:42 PM (8 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Simplify gradient color specifications in theme.json.

rgba(#,#,#,1) is equivalent to rgb(#,#,#) and can be replaced with the latter for more consistency.

Original PR from Gutenberg repository:

Follow-up to [50959], [55405].

Props georgestephanis, wildworks, juanfra.
Fixes #63381.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/theme/wpThemeJsonResolver.php

    r58797 r60234  
    12081208                array(
    12091209                    'name'   => 'Outlined',
    1210                     'shadow' => '6px 6px 0px -3px rgba(255, 255, 255, 1), 6px 6px rgba(0, 0, 0, 1)',
     1210                    'shadow' => '6px 6px 0px -3px rgb(255, 255, 255), 6px 6px rgb(0, 0, 0)',
    12111211                    'slug'   => 'outlined',
    12121212                ),
    12131213                array(
    12141214                    'name'   => 'Crisp',
    1215                     'shadow' => '6px 6px 0px rgba(0, 0, 0, 1)',
     1215                    'shadow' => '6px 6px 0px rgb(0, 0, 0)',
    12161216                    'slug'   => 'crisp',
    12171217                ),
Note: See TracChangeset for help on using the changeset viewer.