| | 2 | |
| | 3 | |
| | 4 | ---- |
| | 5 | |
| | 6 | Issue description by @threadi from #64356: |
| | 7 | |
| | 8 | |
| | 9 | There is a problem with the button block in the TwentyTwenty theme when using the outline style. The background color is set incorrectly. |
| | 10 | |
| | 11 | In WP 6.8.3: |
| | 12 | |
| | 13 | {{{ |
| | 14 | :root :where(.wp-block-button.is-style-outline--2 .wp-block-button__link) { |
| | 15 | background: transparent none; |
| | 16 | } |
| | 17 | }}} |
| | 18 | |
| | 19 | |
| | 20 | In WP 6.9: |
| | 21 | |
| | 22 | {{{ |
| | 23 | button, .button, .faux-button, .wp-block-button__link, .wp-block-file .wp-block-file__button, input[type=“button”], input[type=‘reset’], input[type=“submit”], .bg-accent, .bg-accent-hover:hover, .bg-accent-hover:focus, :root .has-accent-background-color, .comment-reply-link { |
| | 24 | background-color: #cd2653; |
| | 25 | } |
| | 26 | }}} |
| | 27 | |
| | 28 | |
| | 29 | This can also be reproduced in the Playground: |
| | 30 | |
| | 31 | 1. Go to https://playground.wordpress.net. |
| | 32 | 2. Search for Themes > Add Theme > TwentyTwenty, install & activate. |
| | 33 | 3. Edit Page > Sample Page |
| | 34 | 4. Add a button block there and give it any text you like. Then select “Outline” on the right under Styles. |
| | 35 | 5. Save and check. |
| | 36 | |
| | 37 | Result: |
| | 38 | * View in the editor is correct. |
| | 39 | * View in the frontend is incorrect. |