Skip to content

Commit 4168200

Browse files
chore(dialog): scope passthrough mods to spectrum-Dialog class
1 parent 54944bb commit 4168200

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

components/dialog/index.css

+4-7
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ governing permissions and limitations under the License.
4848

4949
/* Hero */
5050
--spectrum-standard-dialog-hero-block-size: 140px;
51+
52+
/* Passthrough for nested component(s) */
53+
--mod-buttongroup-justify-content: flex-end;
54+
--mod-buttongroup-flex-wrap: nowrap;
5155
}
5256

5357
.spectrum-Dialog {
@@ -209,13 +213,6 @@ governing permissions and limitations under the License.
209213

210214
.spectrum-Dialog-buttonGroup {
211215
grid-area: buttonGroup;
212-
213-
& > .spectrum-ButtonGroup {
214-
/* to override ButtonGroup's justify-content: normal and/or not having footer content,
215-
as well as prevent ButtonGroup from wrapping. */
216-
--mod-buttongroup-justify-content: flex-end;
217-
--mod-buttongroup-flex-wrap: nowrap;
218-
}
219216
}
220217

221218
.spectrum-Dialog-buttonGroup--noFooter {

0 commit comments

Comments
 (0)