Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion packages/ui-dialog/src/Dialog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
*/

import { Component } from 'react'
import { css } from '@emotion/react'

import { omitProps, getElementType } from '@instructure/ui-react-utils'
import { findDOMNode, requestAnimationFrame } from '@instructure/ui-dom-utils'
Expand Down Expand Up @@ -173,7 +174,11 @@ class Dialog extends Component<DialogProps> {
role === 'dialog' && this.props.shouldContainFocus ? true : undefined
}
className={this.props.className} // TODO in V2 remove className, there is no usage of it.
style={{ borderRadius: 'inherit' }} // ensure the dialog inherits border radius from View
css={css`
@layer dialogBase {
& { border-radius: inherit; }
}
`} //making sure it inherits from containers if nothing is specified from outside and use the outside specifiers if they are present, e.g.:modal
ref={this.getRef}
>
{this.props.children}
Expand Down
Loading