File tree 4 files changed +17
-4
lines changed
4 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 68
68
: host ([header-text ]) .ui5-popup-header-text {
69
69
padding : 0 0.25rem ;
70
70
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 ) ;
74
74
text-overflow : ellipsis;
75
75
overflow : hidden;
76
76
white-space : nowrap;
Original file line number Diff line number Diff line change 39
39
--_ui5_list_item_selection_btn_margin_top : calc (-1 * var (--_ui5_checkbox_wrapper_padding ));
40
40
--_ui5_list_busy_row_height : 3rem ;
41
41
--_ui5_month_picker_item_height : 3rem ;
42
+
43
+ /* Popup subclasses */
44
+ --_ui5_popup_default_header_height : 2.75rem ;
45
+
42
46
--_ui5_year_picker_item_height : 3rem ;
43
47
--_ui5_tokenizer_root_padding : 0.1875rem ;
44
48
--_ui5_token_height : 1.625rem ;
158
162
--_ui5_input_icon_padding : .25rem .5rem ;
159
163
--_ui5_input_value_state_icon_padding : .1875rem .5rem ;
160
164
165
+ /* Popup subclasses */
166
+ --_ui5_popup_default_header_height : 2.5rem ;
167
+
161
168
/* TextArea */
162
169
--_ui5_textarea_padding : .1875rem .5rem ;
163
170
Original file line number Diff line number Diff line change 25
25
</ head >
26
26
27
27
< body >
28
+ < ui5-checkbox text ="Compact size " id ="cbCompact "> </ ui5-checkbox >
29
+ < br >
28
30
< ui5-button id ="btnOpenDialog "> Open Streched Dialog</ ui5-button >
29
31
< br >
30
32
< br >
368
370
< ui5-dialog id ="empty-dialog "> Empty</ ui5-dialog >
369
371
370
372
< script >
373
+ cbCompact . addEventListener ( "change" , function ( ) {
374
+ document . body . classList . toggle ( "ui5-content-density-compact" , cbCompact . checked ) ;
375
+ } ) ;
376
+
371
377
let preventClosing = true ;
372
378
373
379
btnOpenDialog . addEventListener ( "click" , function ( ) {
Original file line number Diff line number Diff line change 1
- uvoNQhv6oafzulJZx8BIAfGhmME =
1
+ ldK1ja/5Q2Vh5wwiveJGYLCZDSA =
You can’t perform that action at this time.
0 commit comments