NEW ASK: Ability to Customize Size of Heading, Body, Detail, Button, etc. #2388
Replies: 3 comments 3 replies
-
@meganthecoder - Thanks for the discussion
|
Beta Was this translation helpful? Give feedback.
-
Additional blocks as @ryanmparrish mentioned What about When only a few blocks have an update like this it causes confusion for GWP on which blocks can do this and which can not. Also keep in mind a consistent way to author these updates across all of the outlined blocks. |
Beta Was this translation helpful? Give feedback.
-
They've also asked for authorable spacing (though there's some debate). It looks like the Lines 566 to 570 in a60b132 But there's more to them than just spacing. Any suggestions here? |
Beta Was this translation helpful? Give feedback.
-
As part of the tiger team project, the Consonant team has asked for the ability to customize the heading, body, detail, and button sizes (and potentially others) for blocks. In the red group, this came up for the Aside and (new) Notification blocks, but I believe this is a general shift they'd like to make for many blocks. The idea is that these properties would be authorable and would override the styles for any variant or block size.
Currently
In most of our blocks, the text and button sizes are set by the block size. For example, an
Aside (notification, medium)
has aheading-s
, and aAside (notification, large)
has aheading-l
.In the code, you might see these configs laying out the type sizes used along with
decorateBlockText()
:New Ask
Designers want the heading size, body size, detail size, and button size (and potentially others) to be individually authorable.
Overrides are already available in the Text block
For example:
Text (xxxl-heading, s-detail, s-body, l-spacing-bottom)
(See kitchen sink)
Unknowns
The red tiger team still needs to nail down exactly what styles they want to be able to customize. Heading, body, detail, and button sizes seem to be fairly firm decisions, but I will update as I have more information.
While this request was made for the Aside block (and the new Notification block which will be broken out), I believe this is a general shift that the Consonant team wants to make across the board.
Community Input
Please respond with your thoughts, especially on the following:
Small note: These aren't really variants on a block in the same way that "split" is a variant of the Aside block. If anyone has a different name we want to call them, please suggest it. Modifiers? Customizations?
Thanks for your input!
Beta Was this translation helpful? Give feedback.
All reactions