Opened 20 months ago
Last modified 7 months ago
#58099 new defect (bug)
Twenty Nineteen: Button block does not respect custom width in the editor
Reported by: | nidhidhandhukiya | Owned by: | |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | 5.7 |
Component: | Bundled Theme | Keywords: | needs-patch |
Focuses: | css | Cc: |
Description
Steps to reproduce the issue :-
- Activate Twenty Nineteen theme.
- Choose button block.
- Apply width from 25, 50 or 75.
You can able to see a different changes user side but editor side it remains same.
I have attached video for better understanding.
Video URL :-https://share.cleanshot.com/RQYncB59N8Yf42TzvMdQ
Change History (4)
#2
@
20 months ago
- Focuses css added
- Keywords needs-patch added
- Milestone changed from Awaiting Review to Future Release
- Summary changed from Twenty nineteen button having issue in editor side when width is used. to Twenty Nineteen: Button block does not respect custom width in the editor
The width was added mainly for blocks inside Column blocks (and/or Group blocks, etc.) in PR 454 and PR 526. Then [47587] changed the value from 100%
to initial
.
The SCSS file probably could use .wp-block:where(:not(.has-custom-width))
, which would compile to .editor-styles-wrapper .wp-block .wp-block:where(:not(.has-custom-width))
.
Note: See
TracTickets for help on using
tickets.
The reason behind this issue is the css below.
If we remove this the issue is resolved.
(Note:- I don't know for which actual problem solution this css is written so if we remove this it will affect other block)