Fix the Buttons block margins #21376
Merged
Conversation
Size Change: +5.07 kB (0%) Total Size: 889 kB
|
Filename | Size | Change | |
---|---|---|---|
build/a11y/index.js |
1.02 kB | 0 B | |
build/blob/index.js |
620 B | 0 B | |
build/block-directory/index.js |
6.03 kB | 0 B | |
build/block-directory/style-rtl.css |
760 B | 0 B | |
build/block-directory/style.css |
760 B | 0 B | |
build/block-library/editor-rtl.css |
7.22 kB | 0 B | |
build/block-library/editor.css |
7.22 kB | 0 B | |
build/block-library/theme-rtl.css |
669 B | 0 B | |
build/block-library/theme.css |
671 B | 0 B | |
build/block-serialization-default-parser/index.js |
1.65 kB | 0 B | |
build/block-serialization-spec-parser/index.js |
3.1 kB | 0 B | |
build/components/style-rtl.css |
16.6 kB | 0 B | |
build/components/style.css |
16.5 kB | 0 B | |
build/data/index.js |
8.23 kB | 0 B | |
build/deprecated/index.js |
772 B | 0 B | |
build/dom-ready/index.js |
569 B | 0 B | |
build/dom/index.js |
3.05 kB | 0 B | |
build/edit-navigation/style-rtl.css |
239 B | 0 B | |
build/edit-navigation/style.css |
241 B | 0 B | |
build/editor/style-rtl.css |
3.49 kB | 0 B | |
build/editor/style.css |
3.49 kB | 0 B | |
build/escape-html/index.js |
733 B | 0 B | |
build/format-library/style-rtl.css |
502 B | 0 B | |
build/format-library/style.css |
502 B | 0 B | |
build/html-entities/index.js |
622 B | 0 B | |
build/i18n/index.js |
3.57 kB | 0 B | |
build/is-shallow-equal/index.js |
710 B | 0 B | |
build/keyboard-shortcuts/index.js |
2.3 kB | 0 B | |
build/keycodes/index.js |
1.7 kB | 0 B | |
build/list-reusable-blocks/index.js |
2.99 kB | 0 B | |
build/list-reusable-blocks/style-rtl.css |
226 B | 0 B | |
build/list-reusable-blocks/style.css |
226 B | 0 B | |
build/nux/style-rtl.css |
616 B | 0 B | |
build/nux/style.css |
613 B | 0 B | |
build/plugins/index.js |
2.54 kB | 0 B | |
build/primitives/index.js |
1.5 kB | 0 B | |
build/rich-text/index.js |
14.5 kB | 0 B | |
build/shortcode/index.js |
1.69 kB | 0 B | |
build/viewport/index.js |
1.6 kB | 0 B | |
build/warning/index.js |
1.14 kB | 0 B | |
build/wordcount/index.js |
1.17 kB | 0 B |
LGTM |
I am curious to get thoughts as to why this is hardcoded, vs as a block style setting, like border-radius already is. Thoughts @youknowriad @jorgefilipecosta ? |
@johnstonphilip Potentially, it could be added later. It's just our way of doing things, we iterate otherwise we don't ship anything for a long time. :P. Feel free to open an issue about that setting though, it seems valuable for me at first sight. |
@youknowriad Awesome thanks! Will do. |
whyisjake
added a commit
that referenced
this pull request
Apr 22, 2020
whyisjake
added a commit
that referenced
this pull request
Apr 22, 2020
whyisjake
added a commit
that referenced
this pull request
Apr 23, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
youknowriad commentedApr 3, 2020
closes #21293
The buttons block is misaligned because of the margins applied between its inner blocks. This is not a perfect solution but it solves the most important breakage. It alignes the buttons (left or right depending on the block alignment) while still avoiding the trailing margins.
Other ideas welcome. I thought about grid positioning + grid gp but it's very hard with the current editor markup, maybe as a future iteration