Skip to content

Conversation

@kraenhansen
Copy link
Contributor

Description

As a preparation for COMPASS-4635 this solves the first part of the designed proposed in EXPO-2098: Making the expand-all button more compact and trimming padding.

Compact expand-all button

Screenshot 2024-11-04 at 12 41 31

Less padding on the left side of the trash button and between the "+" and the "▶"

Screenshot 2024-11-04 at 12 41 55

Checklist

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Open Questions

Dependents

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

@kraenhansen kraenhansen added the no-title-validation Skips validation of PR titles (conventional commit adherence + JIRA ticket inclusion) label Nov 4, 2024
@kraenhansen kraenhansen self-assigned this Nov 4, 2024
@kraenhansen kraenhansen force-pushed the kh/less-document-whitespace branch from 011766f to 3bc5471 Compare November 4, 2024 13:50
});

const expandButton = css({
'& > div:has(svg)': {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does feel brittle, if something changes in how leafygreen orientates their buttons internally this could start looking different. Not sure if there's a better way to do this though, looking at the docs I don't think this is exposed for folks. Looks fine, mostly calling it out in case there's a way anyone else knows of, and also something we can watch out for when updating leafygreen deps.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah - I agree this is brittle. I should have made that more obvious in my PR: I've proposed a change to LG to upstream this mongodb/leafygreen-ui#2535.

@kraenhansen kraenhansen merged commit a175cfb into main Nov 5, 2024
30 checks passed
@kraenhansen kraenhansen deleted the kh/less-document-whitespace branch November 5, 2024 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-title-validation Skips validation of PR titles (conventional commit adherence + JIRA ticket inclusion)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants