Text Blocks Implementation - Legal Copy and Link Farm #742
Replies: 5 comments
-
It's hard to say without links to the proposal or links to the design you are trying to accomplish. Where's the JIRA ticket of the original ask? What do the tables look like? How do they change? What do you think are the pros and cons of this approach? |
Beta Was this translation helpful? Give feedback.
-
@auniverseaway This is a CSS only approach. cc: @dstrong23 |
Beta Was this translation helpful? Give feedback.
-
@vhargrave @chrischrischris @meganthecoder @JasonHowellSlavin can you also look at this? |
Beta Was this translation helpful? Give feedback.
-
Hi @salonijain3, A CSS only approach seems to be the right approach to me. You don't modify how the text block itself decorates or inits, and your authors can get the styles they need through a well known authoring pattern. These kinds of specific consumer level solutions have been made to milo blocks before, and are typically documented in the kitchen sink portion of the library docs (see: `Documents -> milo -> docs -> library -> kitchen-sink). I think a future item for us to look at would be how many consumer level styles we do want in these blocks, since when merged that CSS will load for every text block, but that doesn't block anything for me. Link to the branch comparing against main here for those interested: main...drashti1712:milo:TextBlockImpl |
Beta Was this translation helpful? Give feedback.
-
Hi @JasonHowellSlavin @auniverseaway @salonijain3 |
Beta Was this translation helpful? Give feedback.
-
I am creating two new block variants of the Text Block component in milo. In order to implement this, I have added classes .legal-copy and .link-farm corresponding to each variant.
For Legal copy block, I have simply added the font, spacing and line height styles (as provided in the figma designs) to the grouped class selectors. For the link farms, I have used the concept of CSS grids on the block class (.link-farm) to give the block a column like structure. For spacing, font style, line height, link style and hover behavior, I have used the applicable CSS styles on the grouped class (example: .link-farm .text-block) and tag selectors (example: h2, h3, p).
What do you think about this approach for the implementation?
Beta Was this translation helpful? Give feedback.
All reactions