You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Adjust right margins for buttons that are set at 25%, 50%, and 75% widths #28468
CSS StylingRelated to editor and front end styles, CSS-specific issues.[Block] ButtonsAffects the Buttons Block[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended
When a user combines button blocks of varying preset widths (25%, 50%, 75%), they will never actually take up 100% of the available space. There's always an extra margin on the right side:
This may get pretty unweildy, but we should work out a way to ensure that various combinations of these blocks end up taking up the full 100% width when placed together.
When the buttons block is centered, and you add one 75% button followed by 50% and 25%, it is easy to see that the right margin makes the positioning uneven.
This was tested and verified in the #core-css Slack bug scrub! One idea - what about using the gap property with a feature query? gap is not supported in IE11 or Safari, but perhaps it would be okay to use a progressive enhancement approach for this?
Thanks for the recommendation, @laras126! I gave that a try in #29165. I left the existing implementation there as a fallback, but didn't encounter any issues in either Safari or Chrome — they seem to see and use the column-gap alternative just fine. 👍
CSS StylingRelated to editor and front end styles, CSS-specific issues.[Block] ButtonsAffects the Buttons Block[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended
Activity
carolinan commentedon Jan 28, 2021
When the buttons block is centered, and you add one 75% button followed by 50% and 25%, it is easy to see that the right margin makes the positioning uneven.
laras126 commentedon Feb 11, 2021
This was tested and verified in the #core-css Slack bug scrub! One idea - what about using the
gapproperty with a feature query?gapis not supported in IE11 or Safari, but perhaps it would be okay to use a progressive enhancement approach for this?More about
gaphere. One thing to be aware of is partial support which breaks the feature query in Chromium, but I haven't verified if this is an issue (I encountered it over a year ago).kjellr commentedon Feb 19, 2021
Thanks for the recommendation, @laras126! I gave that a try in #29165. I left the existing implementation there as a fallback, but didn't encounter any issues in either Safari or Chrome — they seem to see and use the
column-gapalternative just fine. 👍