-
Notifications
You must be signed in to change notification settings - Fork 0
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
#17 Add Save Layout UI Component #29
#17 Add Save Layout UI Component #29
Conversation
<Button className="cancelButton" onClick={onCancel}> | ||
Cancel | ||
</Button> | ||
<Button className="saveButton" onClick={() => onSave(layoutName, group, checkValues, radioValue || "")} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this would look cleaner if every prop was on a new line
background: var(--actionable-primary-background-default, #FFF); | ||
} | ||
|
||
.cancelButton.saveButton.saltButton:hover { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this can be removed as it is unused. this styling will be applied to elements with className "cancelButton saveButton saltButton" and our buttons have either "cancelButton" or "saveButton" as classNames but not both. I think the intention was to do something like on line 82 (to style both classes use ",")
- Temporary change to fix build until screenshot functionality is implemented
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've made a few comments/questions for the code.
I also have some UI-related comments comparing the actual UI to the Figma designs:
- It looks like the font is a different colour
- The selected radio button inner white circle is a different size
- There's less (left) padding in the dropdown boxes (are these called combo boxes?)
None of it is major stuff though, so nice work 🙂
vuu-ui/packages/vuu-shell/src/layout-management/SaveLayoutPanel.tsx
Outdated
Show resolved
Hide resolved
background: var(--actionable-primary-background-default, #FFF); | ||
} | ||
|
||
.saveButton { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
class names like this maybe a bit too generic, I tend to prefix them with component name, although they likely won't need individual styling like this once all the theme styles are in place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🙂
|
7f66f86
into
feature/layout-management/layout-management-feature
Description
Adds a UI component to handle saving custom layouts. Closes #17.
Change List
SaveLayoutPanel
componentSaveLayoutPanel
index.css
ComboBox
Dialog
componentScreenshots
Testing
Manual testing covered keyboard as well as mouse navigation. All user-provided inputs - layout name, group, checkbox and radio values - are logged to the console correctly (see second screenshot).
Notes
CI checks are not expected to pass until #23 is merged into the base branch.