Skip to content

[EuiListGroupItem] Reduce font weight on s and xs #8305

Description

@ryankeairns

Problem

For size s and xs, the font weight is set to be slightly heavier. The historical reason for doing this is unclear, and it could be changed to match the other sizes.

Solution

  • Pre-requisite: browse the history of this component and any outstanding reason for the added weight
  • Remove the font-weight style set explicitly on these two sizes. This would reduce it to the base 400 weight seen on other sizes.

Example from Observability

Activity

  1. added
    design decision
    on Feb 3, 2025
  2. JasonStoltz commented on May 9, 2025

    @JasonStoltz
    Contributor

    Sorry @ryankeairns, we missed this one. It wasn't added to our team board automatically for some reason. It's here now, we'll take a look.

  3. ryankeairns commented on May 9, 2025

    @ryankeairns
    ContributorAuthor

    No worries, I had forgotten about this one or I, too, may have tackled it :D
    Carry on with taking a look, thanks!

  4. weronikaolejniczak commented on Jun 2, 2025

    @weronikaolejniczak
    Contributor

    The font-weight was set to medium for s and xs here. The PR only talks about gutterSize and color, and "aligning the EuiListGroupItem to new navigation design" 🤷‍♀

    The component is used in e.g. packages/eui/src/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.tsx, exported as EuiCollapsibleNavBeta.KibanaSolution (compound component) that is not used in Kibana.

    EuiListGroup seems to be used a fair amount of times in Kibana.

    I cannot speak for the initial motivation and whether this style is still valid but I can estimate removing these styles as "Tiny" size and 1 story point 😄 @ryankeairns let me know if we want to proceed with this and I can take it as part of this support duty.

  5. ryankeairns commented on Jun 2, 2025

    @ryankeairns
    ContributorAuthor

    Yes, please!

    Thanks for digging into the history... I now recall this being part of the K7 navigation design, but we can safely remove this now. Our typography is a bit haphazard and little simplifications like this get us to a more consistent baseline.

  6. removed
    design decision
    on Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions