Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polish/make manage themes groups nicer #2766

Merged
merged 9 commits into from
May 31, 2024

Conversation

LukeFinch
Copy link
Contributor

Why does this PR exist?

Closes #2757

What does this pull request do?

Currently when managing multidimensional themes with long group names, there's a lack of space for long group names.
This PR moves around some of the UI elements to allow for more space, and hides disabled elements when they're not needed.

Before:

image

After:
image

  • Sets and variables tabs now sit below, in the area they control.
  • Stacked the inputs on top of each other - allowing group names to go wider
  • Made the input for a theme name full-width

Testing this change

  • Go to Manage Themes
  • Create a new theme
  • Add a group
  • Type in a group with a long name
  • Save theme
  • Edit the theme you just created

Additional Notes (if any)

Copy link

changeset-bot bot commented May 17, 2024

⚠️ No Changeset found

Latest commit: 1e99f37

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@LukeFinch LukeFinch changed the base branch from main to release-139 May 17, 2024 09:41
css={{
width: '100%',
paddingBlock: '$2',
minHeight: '72px',
Copy link

Choose a reason for hiding this comment

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

Is there another height reference we can use, a percentage, another variable, instead of this magic number? 👀

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea! - combined the control sizes and padding

<Box css={{ padding: '$1', marginBottom: '$2' }}>Note: When using multi-dimensional themes where values depend on tokens of another theme, connecting styles might not work as expected.</Box>
<ThemeStyleManagementForm id={id} />
</Box>
)}
)}
</Stack>
</StyledForm>
);
};
Copy link

Choose a reason for hiding this comment

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

Group name overflows this container (I think?) when long, causing a horizontal scroll. Restrict its width, then break it or ellipsis + tooltip?

LongThemeGroupName

Copy link
Collaborator

Choose a reason for hiding this comment

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

Love the thorough tests @cuserox ❤️

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in latest commits

@LukeFinch LukeFinch requested review from six7 and cuserox May 29, 2024 09:30
@LukeFinch LukeFinch merged commit b217932 into release-139 May 31, 2024
5 of 6 checks passed
@LukeFinch LukeFinch deleted the polish/make-manage-themes-groups-nicer branch May 31, 2024 07:04
@six7 six7 added the 2.0-rc7 label Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Theme group input is too small
3 participants