Skip to content

Commit

Permalink
Give the dialog element the ds-base class so it looks like it's suppo…
Browse files Browse the repository at this point in the history
…sed to independent of the main site content (#246)
  • Loading branch information
pwolfert authored Feb 28, 2018
1 parent b8d7db6 commit b714a44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/core/src/components/Dialog/Dialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const Dialog = function(props) {

const dialogClassNames = classNames(
'ds-c-dialog',
'ds-base',
className,
size && `ds-c-dialog--${size}`
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Object {
"closeText": "No thank you. I don't like saving money",
},
"wrapper": <Displaced
dialogClass="ds-c-dialog"
dialogClass="ds-c-dialog ds-base"
escapeExits={true}
includeDefaultStyles={false}
mounted={true}
Expand Down Expand Up @@ -60,7 +60,7 @@ exports[`Dialog renders react-aria-modal 1`] = `
underlayClickExits={false}
>
<Displaced
dialogClass="ds-c-dialog"
dialogClass="ds-c-dialog ds-base"
escapeExits={true}
getApplicationNode={
[MockFunction] {
Expand All @@ -77,7 +77,7 @@ exports[`Dialog renders react-aria-modal 1`] = `
underlayClickExits={false}
>
<Modal
dialogClass="ds-c-dialog"
dialogClass="ds-c-dialog ds-base"
dialogId="react-aria-modal-dialog"
escapeExits={true}
focusTrapPaused={false}
Expand Down Expand Up @@ -116,7 +116,7 @@ exports[`Dialog renders react-aria-modal 1`] = `
>
<div
aria-labelledby="dialog-title"
className="ds-c-dialog"
className="ds-c-dialog ds-base"
id="react-aria-modal-dialog"
key="b"
role="dialog"
Expand Down Expand Up @@ -180,7 +180,7 @@ Object {
"size": "full",
},
"wrapper": <Displaced
dialogClass="ds-c-dialog test-dialog ds-c-dialog--full"
dialogClass="ds-c-dialog ds-base test-dialog ds-c-dialog--full"
escapeExits={true}
includeDefaultStyles={false}
mounted={true}
Expand Down

0 comments on commit b714a44

Please sign in to comment.