-
Notifications
You must be signed in to change notification settings - Fork 370
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
upcoming: [M3-7937] - Update Placement Groups detail and summaries #10325
Conversation
388c191
to
03adb1e
Compare
|
||
export type DescriptionListProps = | ||
| DescriptionListBaseProps | ||
| DescriptionListGridProps; |
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.
Using TypeScript's discriminated unions here to make sure gridProps is required when "grid" displayMode is selected
</StyledDL> | ||
</Box> | ||
); | ||
}; |
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.
this is a pretty simple component that is only being used in placement groups right now, but could be used in other areas. It uses the dl > dt, dd for the markup, which - while not being semantically handled perfectly by all browsers - is still better than using paragraphs or divs like we've been doing in other places. Up to team members to implement it or not in their features.
@@ -15,15 +15,15 @@ import { TextField, TextFieldProps } from '../TextField'; | |||
const useStyles = makeStyles<void, 'editIcon' | 'icon'>()( | |||
(theme: Theme, _params, classes) => ({ | |||
button: { | |||
'&:first-of-type': { | |||
'&[aria-label="Save"]': { |
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.
tiny fix to tighten the edit breadcrumb button which had been given an extra let margin in a regression
Coverage Report: ✅ |
Looks good on first-appearance review. I like the addition of the |
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.
Thanks @cpathipa, good observations I will take the redundant info to UX, meanwhile I did update the status column header 👍 |
Description 📝
This PR achieves two main goals:
Affinity Type
)" appendagesChanges 🔄
DescriptionList
component for summaries (only used for PG, meant to be expanded)DescriptionList
in PG drawers and PG detailAffinity Type
)" appendages inPreview 📷
How to test 🧪
Prerequisites
pg-user-1
(1Password)Verification steps
yarn storybook
DescriptionList
behavior and styling via using the playgroundAs an Author I have considered 🤔
Check all that apply