-
Notifications
You must be signed in to change notification settings - Fork 179
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(app): update modal component and labware liquid modal #11216
Conversation
left: 0, | ||
width: '100%', | ||
height: '100%', | ||
} as const |
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.
just curious why all of these are as const
instead of using css
, like
const BASE_STYLE = css' position: POSITION_ABSOLUTE; alignItems: ALIGN_CENTER; justifyContent: JUSTIFY_CENTER; top: 0; right: 0; bottom: 0; left: 0; width: '100%'; height: '100%'; '
I guess they achieve the same thing but not sure if we have a preferred
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 just pulled this from BaseModal
so it's using an old pattern. I'll update it to use css
!
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 if we follow atomic design
, Modal should be in molecules
since we use a few atoms and components from @opentrons/components
4549ca2
to
d73e028
Compare
Codecov Report
@@ Coverage Diff @@
## edge #11216 +/- ##
==========================================
+ Coverage 73.78% 73.81% +0.03%
==========================================
Files 2089 2091 +2
Lines 57737 58166 +429
Branches 5859 5973 +114
==========================================
+ Hits 42599 42937 +338
- Misses 13859 13929 +70
- Partials 1279 1300 +21
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
app/src/atoms/Modal/ModalHeader.tsx
Outdated
data-testid={`ModalHeader_icon_close_${ | ||
typeof title === 'string' ? title : '' | ||
}`} |
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.
maybe, to avoid data-testid="ModalHeader_icon_close_" ?
data-testid={`ModalHeader_icon_close${
typeof title === 'string' ? `_${title}` : ''
}`}
fix #11142
Overview
This PR updates our modal component to no longer depend on the
BaseModal
Changelog
ModalHeader
andModalShell
that match Mel's design system and cover the needs for all currently designed modalsModal
atom to use these when FF is on, and add in some styling to make sure we keep the styling BaseModal had for all current instances of this atomModalHeader
andModalShell
to finish last three design QA requests for theLiquidsLabwareDetailsModal
Review requests
ModalHeader
andModalShell
that will work for all future modal creations but adding styling to keep theModal
index the same for backwards compatibility make sense? Take a look at the ticket and loom for this PR if you want more info on where the specifics are coming fromRisk assessment
Low