File tree Expand file tree Collapse file tree 9 files changed +33
-37
lines changed Expand file tree Collapse file tree 9 files changed +33
-37
lines changed Original file line number Diff line number Diff line change 11## [ ` master ` ] ( https://github.com/elastic/eui/tree/master )
22
3- No public interface changes since ` 24.1.0 ` .
3+ ** Theme: Amsterdam**
4+
5+ - Updated ` EuiHeader ` and components ([ #3524 ] ( https://github.com/elastic/eui/pull/3524 ) )
6+
7+ ** Breaking changes**
8+
9+ - A fixed ` EuiHeader ` no longer automatically padding directly to the ` <body> ` element ([ #3538 ] ( https://github.com/elastic/eui/pull/3538 ) )
410
511## [ ` 24.1.0 ` ] ( https://github.com/elastic/eui/tree/v24.1.0 )
612
@@ -43,11 +49,6 @@ No public interface changes since `24.1.0`.
4349- Improve ` EuiOverlayMask ` colors ([ #3515 ] ( https://github.com/elastic/eui/pull/3515 ) )
4450- Updated shadow styles to improve smoothness, use black as the base color, and deprecated ` opacity ` value of shadow mixins ([ #3428 ] ( https://github.com/elastic/eui/pull/3428 ) )
4551- Removed borders from ` EuiFlyout ` and ` EuiPopover ` ([ #3477 ] ( https://github.com/elastic/eui/pull/3477 ) )
46- - Updated ` EuiHeader ` and components ([ #3524 ] ( https://github.com/elastic/eui/pull/3524 ) )
47-
48- ** Breaking changes**
49-
50- - A fixed ` EuiHeader ` no longer automatically padding directly to the ` <body> ` element ([ #3538 ] ( https://github.com/elastic/eui/pull/3538 ) )
5152
5253## [ ` 24.0.0 ` ] ( https://github.com/elastic/eui/tree/v24.0.0 )
5354
Original file line number Diff line number Diff line change @@ -189,14 +189,14 @@ export const HeaderExample = {
189189 < >
190190 < p >
191191 Most consumers need a header that does not scroll away with the page
192- contents. You can apply this display by applying the property { ' ' }
193- < EuiCode language = "ts" > { 'position="fixed"' } </ EuiCode > . This will also
194- add a class of < EuiCode > .euiBody--headerIsFixed</ EuiCode > to the
195- window body.
192+ contents. You can apply this display by applying the property{ ' ' }
193+ < EuiCode language = "ts" > { 'position="fixed"' } </ EuiCode > . This will
194+ also add a class of < EuiCode > .euiBody--headerIsFixed</ EuiCode > to
195+ the window body.
196196 </ p >
197197 < p >
198- You will then need to apply your own padding to this body class to afford
199- for the header height. EUI supplies a helper mixin that also
198+ You will then need to apply your own padding to this body class to
199+ afford for the header height. EUI supplies a helper mixin that also
200200 accounts for this height in flyouts and the collapsible nav. Simply
201201 add{ ' ' }
202202 < EuiCode language = "sass" > @mixin euiHeaderAffordForFixed;</ EuiCode > { ' ' }
Original file line number Diff line number Diff line change @@ -4,35 +4,27 @@ import {
44 EuiHeader ,
55 EuiHeaderLogo ,
66 EuiSwitch ,
7+ EuiSpacer ,
78} from '../../../../src/components' ;
89
910export default ( ) => {
1011 const [ position , setPosition ] = useState ( 'static' ) ;
1112
1213 const sections = [
1314 {
14- items : [
15- < EuiHeaderLogo
16- iconType = "logoKibana"
17- href = "#"
18- aria-label = "Go to home page"
19- /> ,
20- ] ,
21- borders : 'none' ,
22- } ,
23- {
24- items : [
25- < div style = { { padding : 12 } } >
26- < EuiSwitch
27- label = { `position: ${ position } ` }
28- checked = { position === 'fixed' }
29- onChange = { e => setPosition ( e . target . checked ? 'fixed' : 'static' ) }
30- />
31- </ div > ,
32- ] ,
33- borders : 'none' ,
15+ items : [ < EuiHeaderLogo iconType = "logoKibana" > Kibana</ EuiHeaderLogo > ] ,
3416 } ,
3517 ] ;
3618
37- return < EuiHeader position = { position } sections = { sections } /> ;
19+ return (
20+ < >
21+ < EuiSwitch
22+ label = { 'Make header fixed position' }
23+ checked = { position === 'fixed' }
24+ onChange = { e => setPosition ( e . target . checked ? 'fixed' : 'static' ) }
25+ />
26+ < EuiSpacer />
27+ < EuiHeader position = { position } sections = { sections } />
28+ </ >
29+ ) ;
3830} ;
Original file line number Diff line number Diff line change 99 display : flex ;
1010 justify-content : space-between ;
1111 background : $euiHeaderBackgroundColor ;
12- border-bottom : $euiBorderThin ;
12+ border-bottom : 1 px solid $euiHeaderBorderColor ;
1313
1414 & --fixed {
1515 position : fixed ;
Original file line number Diff line number Diff line change 11@mixin euiHeaderDarkTheme ($backgroundColor ) {
22 background-color : $backgroundColor ;
3- border-bottom-color : lightOrDarkTheme ($backgroundColor , $euiBorderColor );
3+ border-bottom-color : lightOrDarkTheme ($backgroundColor , $euiHeaderBorderColor );
44
55 .euiHeaderLogo__text ,
66 .euiHeaderLink ,
Original file line number Diff line number Diff line change 11// Note - these are also used by the EuiNavDrawer (/nav_drawer) component
22// Themable colors
33$euiHeaderBackgroundColor : $euiColorEmptyShade !default ;
4+ $euiHeaderBorderColor : $euiBorderColor !default ;
45$euiHeaderBreadcrumbColor : $euiColorDarkestShade !default ;
56
67// Layout vars
Original file line number Diff line number Diff line change 1+ $euiHeaderBorderColor : shade ($euiBorderColor , 3% );
12$euiHeaderHeight : $euiSizeXXL + $euiSizeS ;
23
34$euiHeaderChildSize : $euiSizeXXL ;
Original file line number Diff line number Diff line change 1+ // Amsterdam shadows extend upwards as well, but this means flyouts shadows can overlap fixed headers.
2+ // The clip path ensures only the left side of the shadow is exposed.
13.euiFlyout {
2- clip-path : polygon (-10% 1 px , 100% 1 px , 100% 100% , -10% 100% );
4+ clip-path : polygon (-10% 0 , 100% 0 , 100% 100% , -10% 100% );
35}
Original file line number Diff line number Diff line change 11.euiHeader {
22 height : $euiHeaderHeight ;
3- border-bottom : none ;
43 padding-left : $euiSizeS ;
54 padding-right : $euiSizeS ;
65}
You can’t perform that action at this time.
0 commit comments