Uh oh!
There was an error while loading. Please reload this page.
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/primer/primer-components/F5HTpyU3VzY2ZZfG5pusKheZakAy |
|
Uh oh!
There was an error while loading. Please reload this page.
dgreif
left a comment
There was a problem hiding this comment.
Awesome work! It's really nice that you got this working with pure styles and didn't even need useAnchoredPosition. 🚀
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| const StyledDialog = styled.div<StyledDialogProps & SystemCommonProps & SystemPositionProps & SxProp>` | ||
| display: flex; | ||
| flex-direction: column; | ||
| background-color: ${get('colors.bg.overlay')}; |
There was a problem hiding this comment.
There was a problem hiding this comment.
I can make this change, but the real fix IMO is to have <BaseStyles> use theme values.
There was a problem hiding this comment.
On a second look, it seems like this is an issue only in the docs.
Does this have something to do with these comments found in wrap-page-element.js?
// Temporarily shadowing this file to wrap the page in our custom ThemeProvider.
// We can remove this file when Doctocat uses the custom ThemeProvider.
// Doctocat still uses presentional color variables.
// We can remove this customTheme when Doctocat uses functional color variables
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
colebemis
commented
Apr 19, 2021
This is looking really great, @T-Hugs! This API seems like a nice balance between providing a happy path and escape hatches. |
T-Hugs
commented
Apr 20, 2021
Haha, yeah, it was never my intention to use |

This PR adds a new Dialog component to Primer React. This component is intended to replace the existing Dialog component (found at
src/Dialog.tsx). For more details, see #1065 or read the rendered documentation.Closes#1065
Open questions: (CC @vdepizzol)
Screenshots
Merge checklist