Skip to content

Commit 580eddc

Browse files
committed
Remove outline on close button on dialog
1 parent 160bbdd commit 580eddc

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

component-library/src/styles/component-overrides.css

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
--p-tooltip-max-width: min(85vw, calc(var(--spacing) * 100));
66
}
77

8-
.p-overlay-mask:has(.p-dialog) {
9-
padding: 1rem;
10-
}
11-
128
/**
139
* GUTTER FIX
1410
* Primevue's dropwdown components are all missing the gap between input and dropdown
@@ -22,11 +18,25 @@
2218
margin: var(--p-anchor-gutter) 0;
2319
}
2420

21+
/**
22+
* Overlay
23+
**/
24+
2525
/* This fix is to ensure overlay badge is contained within the size of the component it wraps */
2626
.p-overlaybadge {
2727
display: inline-block;
2828
}
2929

30+
/* Adds padding to dialog on mobile so it doesn't go edge to edge */
31+
.p-overlay-mask:has(.p-dialog) {
32+
padding: 1rem;
33+
}
34+
/* Removes focus outline from the close button */
35+
.p-dialog-close-button:focus-visible {
36+
outline: none;
37+
box-shadow: none;
38+
}
39+
3040
/**
3141
* BccAutocomplete
3242
**/

0 commit comments

Comments
 (0)