File tree Expand file tree Collapse file tree
packages/eui/src/components/panel Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,6 +18,23 @@ import {
1818export const euiPanelStyles = ( euiThemeContext : UseEuiTheme ) => {
1919 const { euiTheme } = euiThemeContext ;
2020
21+ const borderStyle = `
22+ position: relative;
23+
24+ /* Using a pseudo element for the border instead of floating border only
25+ because the transparent border might otherwise be visible with arbitrary
26+ full-width/height content in light mode. */
27+ ::before {
28+ content: '';
29+ position: absolute;
30+ inset: 0;
31+ border: ${ euiTheme . border . width . thin } solid
32+ ${ euiTheme . colors . borderBaseFloating } ;
33+ border-radius: inherit;
34+ pointer-events: none;
35+ }
36+ ` ;
37+
2138 return {
2239 // Base
2340 euiPanel : css `
@@ -30,8 +47,8 @@ export const euiPanelStyles = (euiThemeContext: UseEuiTheme) => {
3047
3148 hasShadow : css `
3249 ${ euiShadow ( euiThemeContext , 'm' ) }
33- border : ${ euiTheme . border . width . thin } solid ${ euiTheme . colors
34- . borderBaseFloating } ;
50+
51+ ${ borderStyle }
3552 ` ,
3653
3754 hasBorder : css `
You can’t perform that action at this time.
0 commit comments