Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #59922, comment 13


Ignore:
Timestamp:
02/16/2024 05:48:23 AM (2 years ago)
Author:
poena
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #59922, comment 13

    initial v1  
    1414# File block
    1515Before 5.8, the file block link is not a link element, so the general link styles are not applied.
    16 The class name for the link was .wp-block-file__textlink, and it was removed in 5.8.
    17 The color is decided by .editor-styles-wrapper .wp-block .wp-block-file .wp-block-file__textlink
     16The class name for the link was {{{.wp-block-file__textlink}}}, and it was removed in 5.8.
     17The color is decided by
     18{{{.editor-styles-wrapper .wp-block .wp-block-file .wp-block-file__textlink}}}
     19
    1820The :hover, which does not have a space, isn't working and should be updated.
     21
     22{{{
    1923.editor-styles-wrapper .wp-block.wp-block-file .wp-block-file__textlink:hover
     24}}}
     25
    2026should have been:
     27
     28{{{
    2129.editor-styles-wrapper .wp-block .wp-block-file .wp-block-file__textlink:hover
     30}}}
     31
    2232
    2333The file block button background color is not working, because
     34{{{
    2435.editor-styles-wrapper .wp-block.wp-block-file .wp-block-file__button
     36}}}
    2537needs to be duplicated and a space added:
     38{{{
    2639.editor-styles-wrapper .wp-block .wp-block-file .wp-block-file__button
     40}}}
     41
    2742
    2843In later versions:
    2944- The file block link color is decided by the general link colors.
    3045- The file block button background color is decided by
     46
     47{{{
    3148.editor-styles-wrapper .wp-block.wp-block-file .wp-block-file__button
     49}}}
     50
    3251- The wp-block and wp-block-file classes are on the same element.
    3352