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

Change styles to allow SettingsListControl to support wider controls #1617

Conversation

SammyIsConfused
Copy link
Contributor

@SammyIsConfused SammyIsConfused commented Apr 15, 2020

Such as Sliders, for the Search boosting settings.

Checklist
Description of change

image
The amount of space dedicated to the ListItemSecondaryAction was prohibitively small - works great for things like checkboxes, but squashes wide components such as sliders. This PR changes this so there is much more room to work with.

Note: The slider item in the list isn't a change, simply a visual example of this change working with a wide component.

Also - add stories for the SettingsListControl.

Such as Sliders, for the Search boosting settings.
Copy link
Member

@edalex-ian edalex-ian left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link

@nmkae nmkae left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +33 to +36
secondaryAction: {
width: "55%",
display: "flex",
justifyContent: "flex-end"
Copy link

Choose a reason for hiding this comment

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

A bit odd with the widths and flexbox, I'd expect flexbox grow to negate the need for doing widths

@SammyIsConfused SammyIsConfused merged commit abb4646 into openequella:component/search_configuration Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants