File tree Expand file tree Collapse file tree 4 files changed +16
-6
lines changed
Expand file tree Collapse file tree 4 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 6868: host ([header-text ]) .ui5-popup-header-text {
6969 padding : 0 0.25rem ;
7070 text-align : center;
71- min-height : 3 rem ;
72- max-height : 3 rem ;
73- line-height : 3 rem ;
71+ min-height : var ( --_ui5_popup_default_header_height ) ;
72+ max-height : var ( --_ui5_popup_default_header_height ) ;
73+ line-height : var ( --_ui5_popup_default_header_height ) ;
7474 text-overflow : ellipsis;
7575 overflow : hidden;
7676 white-space : nowrap;
Original file line number Diff line number Diff line change 3939 --_ui5_group_header_list_item_height : 2.75rem ;
4040 --_ui5_list_busy_row_height : 3rem ;
4141 --_ui5_month_picker_item_height : 3rem ;
42+
43+ /* Popup subclasses */
44+ --_ui5_popup_default_header_height : 2.75rem ;
45+
4246 --_ui5_year_picker_item_height : 3rem ;
4347 --_ui5_tokenizer_root_padding : 0.1875rem ;
4448 --_ui5_token_height : 1.625rem ;
155159 --_ui5_input_icon_padding : .25rem .5rem ;
156160 --_ui5_input_value_state_icon_padding : .1875rem .5rem ;
157161
162+ /* Popup subclasses */
163+ --_ui5_popup_default_header_height : 2.5rem ;
164+
158165 /* TextArea */
159166 --_ui5_textarea_padding : .1875rem .5rem ;
160167
Original file line number Diff line number Diff line change 2525</ head >
2626
2727< body >
28+ < ui5-checkbox text ="Compact size " id ="cbCompact "> </ ui5-checkbox >
29+ < br >
2830 < ui5-button id ="btnOpenDialog "> Open Streched Dialog</ ui5-button >
2931 < br >
3032 < br >
355357 < ui5-dialog id ="empty-dialog "> Empty</ ui5-dialog >
356358
357359 < script >
360+ cbCompact . addEventListener ( "change" , function ( ) {
361+ document . body . classList . toggle ( "ui5-content-density-compact" , cbCompact . checked ) ;
362+ } ) ;
363+
358364 let preventClosing = true ;
359365
360366 btnOpenDialog . addEventListener ( "click" , function ( ) {
Original file line number Diff line number Diff line change @@ -137,9 +137,6 @@ <h2> Inputs based component that opens popover/dialog within dialog</h2>
137137 rpTopWithArrow . open ( btnRpTopWithArrow ) ;
138138 } ) ;
139139
140- btnRpTopWithArrow . addEventListener ( "click" , function ( event ) {
141- rpTopWithArrow . openBy ( btnRpTopWithArrow ) ;
142- } ) ;
143140 </ script >
144141</ body >
145142</ html >
You can’t perform that action at this time.
0 commit comments