bitstyles icon indicating copy to clipboard operation
bitstyles copied to clipboard

Update Section Heading component

Open ArinzeJeffrey-droid opened this issue 2 years ago • 3 comments

Fixes #783

📸 Looks like

image

Small screens

image

Large screens

image

Changes

  • [x] On smaller screens items stack top to bottom from the left to right.
  • [x] When an item is attached to the title text (i.e. a badge or counter) it sticks/aligns to the top line of text when the text breaks to multiple lines.
  • [x] All Section Headings have a 2px border underline.
  • [x] The border underline fills the container width (minus padding)

How to QA

  • git fetch
  • git checkout <pr-branch-name>
  • yarn
  • yarn storybook
  • navigate to Section heading

Check:

  • [x] The appearance matches the design in Zeplin
  • [x] The Zeplin component is correctly linked in storybook
  • [x] The documentation for this component is correct, understandable, and up-to-date.

👾 Code changes

Check:

  • [x] The documentation for this component is correct, understandable, and up-to-date.
  • [x] The component makes good use of CSS custom properties to simplify creating variants (or doesn’t have variants).
  • [x] Everything that should be a variable, is.

ArinzeJeffrey-droid avatar Jul 25 '23 00:07 ArinzeJeffrey-droid

How does this look on smaller screens? e.g. when there’s a long title plus a badge, does the badge align to the top of the title text? It would be great to add a story that show that :) (we might not need to create stories for each zeplin component/variant, but they’re a good guide e.g. https://zpl.io/9qv8l3A)

This is how it looks on smaller screens image

Do you have a moment? I'd have some questions about the spacings.

ArinzeJeffrey-droid avatar Jul 25 '23 10:07 ArinzeJeffrey-droid

Do you have a moment? I'd have some questions about the spacings.

@ArinzeJeffrey-droid sorry, I missed this — yes let’s take a look together

planktonic avatar Aug 02 '23 15:08 planktonic

@ArinzeJeffrey-droid what’s the status of the alignment question? (I think you got in touch with Ed to discuss how to handle label next to a long title text when on small screens? (see other comments)

I was able use zeplin to improve the spacing and text on smaller screens. image

ArinzeJeffrey-droid avatar Mar 14 '24 08:03 ArinzeJeffrey-droid

All great! I added just one comment about storybook.

bluemoonecho avatar May 15 '24 08:05 bluemoonecho