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

feat: add settings components [LW-10713] #47

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DominikGuzei
Copy link
Member

@DominikGuzei DominikGuzei commented Aug 20, 2024

This PR is a proposal to add components for composing a settings section like in Lace:

image

@DominikGuzei DominikGuzei added the enhancement New feature or request label Aug 20, 2024
@DominikGuzei DominikGuzei self-assigned this Aug 20, 2024
Copy link

@DominikGuzei DominikGuzei marked this pull request as draft August 20, 2024 12:35
Comment on lines +5 to +18
export const separator = style({
width: '100%',
height: 1,
background: vars.colors.$settings_item_separator_color,
selectors: {
[`${root}:first-of-type &`]: {
background: 'none',
},
[`${root}:hover &`]: {
background: 'none',
},
},
});

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah good point, i thought that it might be more work to make it react to these selectors then?

Comment on lines +27 to +30
pt="$32"
pb="$32"
pl="$16"
pr="$16"
Copy link
Contributor

Choose a reason for hiding this comment

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

Q: can we at least allow classname or something to override this ? Maybe it won't be applicable in all the places.
Or, remove a wrapper Box and control it from the parent if necessary?
Separator is an end-app choice.
Just thinking loudly... WDYT?

@DominikGuzei
Copy link
Member Author

@tomislavhoracek sorry, i should have added a note to this PR that it's just a draft to save the idea for potentially later. @pczeglik-iohk already decided that this will not be continued/merged in the ui-toolkit

@tomislavhoracek
Copy link
Contributor

have added a note to this PR that it's just a draft to save the idea

No worries @DominikGuzei 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants