Skip to content

Commit 642a3e0

Browse files
authored
Merge pull request #7935 from IgniteUI/SIvanova/update-elevation-docs
docs(sassdoc): update elevation documentation
2 parents 80fb2cd + 3d70123 commit 642a3e0

File tree

9 files changed

+62
-8
lines changed

9 files changed

+62
-8
lines changed

projects/igniteui-angular/src/lib/core/styles/themes/schemas/light/_badge.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
/// @prop {Number} border-radius [1] - The border radius used for badge. Can be a fraction between 0 and 1, pixels, or percent.
1919
/// @requires {function} extend
2020
/// @requires {Map} $_default-shape-badge
21+
/// @requires {Map} $_default-elevation-badge
2122
/// @see $default-palette
2223
$_light-badge: extend(
2324
$_default-shape-badge,
@@ -53,6 +54,7 @@ $_fluent-badge: extend($_light-badge);
5354
/// @requires {function} extend
5455
/// @requires {Map} $_light-badge
5556
/// @requires {Map} $_bootstrap-shape-badge
57+
/// @requires {Map} $_bootstrap-elevation-badge
5658
$_bootstrap-badge: extend(
5759
$_light-badge,
5860
$_bootstrap-shape-badge,

projects/igniteui-angular/src/lib/core/styles/themes/schemas/light/_bottom-nav.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
/// @prop {Color} background [#fff] - The background color used for the toast.
1212
/// @prop {Map} idle-item-color [igx-color: ('grays', 700)] - The text-color used for the idle color.
1313
/// @prop {Map} active-item-color [igx-color: ('primary', 500)] - The text-color used for the active color.
14-
/// @prop {number} elevation [8] - The elevation level of the bar.
14+
/// @prop {Number} elevation [8] - The elevation level, between 0-24, to be used for the bottom nav.
15+
/// @requires {function} extend
16+
/// @requires {Map} $_default-elevation-bottom-nav
1517
/// @see $default-palette
1618
$_light-bottom-nav: extend(
1719
$_default-elevation-bottom-nav,
@@ -30,8 +32,10 @@ $_light-bottom-nav: extend(
3032

3133
/// Generates a fluent bottom navigation schema.
3234
/// @type {Map}
35+
/// @prop {Number} elevation [1] - The elevation level, between 0-24, to be used for the bottom nav.
3336
/// @requires {function} extend
3437
/// @requires {Map} $_light-bottom-nav
38+
/// @requires {Map} $_fluent-elevation-bottom-nav
3539
$_fluent-bottom-nav: extend($_light-bottom-nav, $_fluent-elevation-bottom-nav);
3640

3741
/// Generates a bootstrap bottom navigation schema.
@@ -42,6 +46,8 @@ $_bootstrap-bottom-nav: extend($_light-bottom-nav);
4246

4347
/// Generates an indigo bottom navigation schema.
4448
/// @type {Map}
49+
/// @prop {Number} elevation [4] - The elevation level, between 0-24, to be used for the bottom nav.
4550
/// @requires {function} extend
4651
/// @requires {Map} $_light-bottom-nav
52+
/// @requires {Map} $_indigo-elevation-bottom-nav
4753
$_indigo-bottom-nav: extend($_light-bottom-nav, $_indigo-elevation-bottom-nav);

projects/igniteui-angular/src/lib/core/styles/themes/schemas/light/_button-group.scss

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@
2424
/// @prop {Map} item-selected-background [igx-color: ('grays', 400)] - The background color for a selected item in the button group.
2525
/// @prop {Map} item-selected-border-color [igx-color: ('grays', 400), hexrgba: #ccc] - The border color for a selected item from the button group.
2626
/// @prop {Map} item-selected-hover-background [igx-color: ('grays', 500)] - The background color for a selected item in hover or focus state in the button group.
27-
/// @prop {Number} elevation [2] - The elevation level, between 0-24, to be used for the badge shadow.
27+
/// @prop {Number} elevation [2] - The elevation level, between 0-24, to be used for the button group shadow.
2828
/// @prop {Number} border-radius [.2] - The border radius used for button-group component. Can be a fraction between 0 and 1, pixels, or percent.
2929
/// @requires {function} extend
3030
/// @requires {Map} $_default-shape-button-group
31+
/// @requires {Map} $_default-elevation-button-group
3132
/// @see $default-palette
3233
$_light-button-group: extend(
3334
$_default-shape-button-group,
@@ -96,12 +97,13 @@ $_light-button-group: extend(
9697
/// @prop {Map} item-selected-text-color [igx-color: ('primary', 200)]- The text color for a selected item in the button group.
9798
/// @prop {Color} disabled-background-color [transparent] - The background color for a disabled item in the button group.
9899
///
99-
/// @prop {Number} elevation [0] - The elevation level, between 0-24, to be used for the badge shadow.
100+
/// @prop {Number} elevation [0] - The elevation level, between 0-24, to be used for the button group shadow.
100101
/// @prop {Number} border-radius [2px] - The border radius used for button-group component. Can be a fraction between 0 and 1, pixels, or percent.
101102
///
102103
/// @requires {function} extend
103104
/// @requires {Map} $_light-button-group
104105
/// @requires {Map} $_fluent-shape-button-group
106+
/// @requires {Map} $_fluent-elevation-button-group
105107
$_fluent-button-group: extend(
106108
$_light-button-group,
107109
$_fluent-shape-button-group,
@@ -149,10 +151,12 @@ $_fluent-button-group: extend(
149151
/// @prop {Map} disabled-background-color [igx-color: ('primary', 500), lighten: 35%] - The background color for a disabled item in the button group.
150152
/// @prop {Map} disabled-text-color [igx-color: ('primary', 500), lighten: 20%]- The text/icon color for a disabled item in the button group.
151153
/// @prop {Map} item-disabled-border [igx-color: ('primary', 500), lighten: 35%] - The border color for a disabled item in the button group.
154+
/// @prop {Number} elevation [0] - The elevation level, between 0-24, to be used for the button group shadow.
152155
/// @prop {Number} border-radius [4px] - The border radius used for button-group component. Can be a fraction between 0 and 1, pixels, or percent.
153156
/// @requires {function} extend
154157
/// @requires {Map} $_light-button-group
155158
/// @requires {Map} $_bootstrap-shape-button-group
159+
/// @requires {Map} $_bootstrap-elevation-button-group
156160
$_bootstrap-button-group: extend(
157161
$_light-button-group,
158162
$_bootstrap-shape-button-group,
@@ -223,10 +227,12 @@ $_bootstrap-button-group: extend(
223227
/// @prop {Map} disabled-background-color [igx-color: ('grays', 100)] - The background color for a disabled item in the button group.
224228
/// @prop {Map} disabled-text-color [igx-color: ('grays', 400)]- The text/icon color for a disabled item in the button group.
225229
/// @prop {Map} item-disabled-border [igx-color: ('grays', 100)] - The border color for a disabled item in the button group.
230+
/// @prop {Number} elevation [0] - The elevation level, between 0-24, to be used for the button group shadow.
226231
/// @prop {Number} border-radius [8px] - The border radius used for button-group component. Can be a fraction between 0 and 1, pixels, or percent.
227232
/// @requires {function} extend
228233
/// @requires {Map} $_light-button-group
229234
/// @requires {Map} $_indigo-shape-button-group
235+
/// @requires {Map} $_indigo-elevation-button-group
230236
$_indigo-button-group: extend(
231237
$_light-button-group,
232238
$_indigo-shape-button-group,

projects/igniteui-angular/src/lib/core/styles/themes/schemas/light/_button.scss

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
/// @prop {Number} icon-border-radius [1] - The border radius used for icon button. Can be a fraction between 0 and 1, pixels, or percent.
7373
/// @requires {function} extend
7474
/// @requires {Map} $_default-shape-button
75+
/// @requires {Map} $_default-elevation-button
7576
/// @see $default-palette
7677
$_light-button: extend(
7778
$_default-shape-button,
@@ -279,6 +280,7 @@ $_light-button: extend(
279280
/// @requires {function} extend
280281
/// @requires {Map} $_light-button
281282
/// @requires {Map} $_fluent-shape-button
283+
/// @requires {Map} $_fluent-elevation-button
282284
$_fluent-button: extend(
283285
$_light-button,
284286
$_fluent-shape-button,
@@ -423,6 +425,13 @@ $_fluent-button: extend(
423425
/// @prop {Map} disabled-background [igx-color: ('primary', 500), lighten: 35%] - the disabled background color.
424426
/// @prop {Map} outlined-disabled-outline-color [igx-color: ('primary', 500), lighten: 35%] - the border-color for outlined buttons.
425427
///
428+
/// @prop {Number} raised-resting-elevation [0] - The elevation level, between 0-24, to be used for the resting state.
429+
/// @prop {Number} raised-hover-elevation [0] - The elevation level, between 0-24, to be used for the hover state.
430+
/// @prop {Number} raised-focus-elevation [0] - The elevation level, between 0-24, to be used for the focus state.
431+
/// @prop {Number} fab-resting-elevation [0] - The elevation level, between 0-24, to be used for the resting state.
432+
/// @prop {Number} fab-hover-elevation [0] - The elevation level, between 0-24, to be used for the hover state.
433+
/// @prop {Number} fab-focus-elevation [0] - The elevation level, between 0-24, to be used for the focus state.
434+
///
426435
/// @prop {Number} flat-border-radius [4px] - The border radius used for flat button. Can be a fraction between 0 and 1, pixels, or percent.
427436
/// @prop {Number} raised-border-radius [4px] - The border radius used for raised button. Can be a fraction between 0 and 1, pixels, or percent.
428437
/// @prop {Number} outlined-border-radius [4px] - The border radius used for outlined button. Can be a fraction between 0 and 1, pixels, or percent.
@@ -432,6 +441,7 @@ $_fluent-button: extend(
432441
/// @requires {function} extend
433442
/// @requires {Map} $_light-button
434443
/// @requires {Map} $_bootstrap-shape-button
444+
/// @requires {Map} $_bootstrap-elevation-button
435445
$_bootstrap-button: extend(
436446
$_light-button,
437447
$_bootstrap-shape-button,
@@ -576,6 +586,13 @@ $_bootstrap-button: extend(
576586
/// @prop {Map} icon-focus-background [igx-color: ('grays', 300)] - The focus icon color of an icon button.
577587
/// @prop {Color} icon-focus-color [igx-color: ('grays', 600)] - The focus icon color of an icon button.
578588
///
589+
/// @prop {Number} raised-resting-elevation [0] - The elevation level, between 0-24, to be used for the resting state.
590+
/// @prop {Number} raised-hover-elevation [0] - The elevation level, between 0-24, to be used for the hover state.
591+
/// @prop {Number} raised-focus-elevation [0] - The elevation level, between 0-24, to be used for the focus state.
592+
/// @prop {Number} fab-resting-elevation [0] - The elevation level, between 0-24, to be used for the resting state.
593+
/// @prop {Number} fab-hover-elevation [0] - The elevation level, between 0-24, to be used for the hover state.
594+
/// @prop {Number} fab-focus-elevation [0] - The elevation level, between 0-24, to be used for the focus state.
595+
///
579596
/// @prop {Number} flat-border-radius [1] - The border radius used for flat button. Can be a fraction between 0 and 1, pixels, or percent.
580597
/// @prop {Number} raised-border-radius [1] - The border radius used for raised button. Can be a fraction between 0 and 1, pixels, or percent.
581598
/// @prop {Number} outlined-border-radius [1] - The border radius used for outlined button. Can be a fraction between 0 and 1, pixels, or percent.
@@ -585,6 +602,7 @@ $_bootstrap-button: extend(
585602
/// @requires {function} extend
586603
/// @requires {Map} $_light-button
587604
/// @requires {Map} $_indigo-shape-button
605+
/// @requires {Map} $_indigo-elevation-button
588606
$_indigo-button: extend(
589607
$_light-button,
590608
$_indigo-shape-button,

projects/igniteui-angular/src/lib/core/styles/themes/schemas/light/_card.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
///
2222
/// @requires {function} extend
2323
/// @requires {Map} $_default-shape-card
24+
/// @requires {Map} $_default-elevation-card
2425
/// @see $default-palette
2526
$_light-card: extend(
2627
$_default-shape-card,
@@ -72,6 +73,7 @@ $_light-card: extend(
7273
/// @requires {function} extend
7374
/// @requires {Map} $_light-card
7475
/// @requires {Map} $_fluent-shape-card
76+
/// @requires {Map} $_fluent-elevation-card
7577
$_fluent-card: extend(
7678
$_light-card,
7779
$_fluent-shape-card,
@@ -99,6 +101,7 @@ $_fluent-card: extend(
99101
/// @requires {function} extend
100102
/// @requires {Map} $_light-card
101103
/// @requires {Map} $_bootstrap-shape-card
104+
/// @requires {Map} $_bootstrap-elevation-card
102105
$_bootstrap-card: extend(
103106
$_light-card,
104107
$_bootstrap-shape-card,
@@ -143,6 +146,7 @@ $_bootstrap-card: extend(
143146
/// @requires {function} extend
144147
/// @requires {Map} $_light-card
145148
/// @requires {Map} $_indigo-shape-card
149+
/// @requires {Map} $_indigo-elevation-card
146150
$_indigo-card: extend(
147151
$_light-card,
148152
$_indigo-shape-card,

projects/igniteui-angular/src/lib/core/styles/themes/schemas/light/_carousel.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@
2020
/// @prop {Color} indicator-border-color [#fff] - The idle indicator border color.
2121
/// @prop {Color} indicator-active-dot-color [#fff] - The active indicator dot color.
2222
/// @prop {Color} indicator-active-border-color [#fff] - The active indicator border color.
23+
/// @prop {Number} button-elevation [1] - The elevation level, between 0-24, to be used for the carousel buttons.
2324
/// @prop {Number} border-radius [0] - The border radius used for carousel. Can be a fraction between 0 and 1, pixels, or percent.
2425
/// @requires {function} extend
2526
/// @requires {Map} $_default-shape-carousel
27+
/// @requires {Map} $_default-elevation-carousel
2628
/// @see $default-palette
2729
$_light-carousel: extend(
2830
$_default-shape-carousel,
@@ -60,9 +62,11 @@ $_light-carousel: extend(
6062
/// Generates a fluent carousel schema.
6163
/// @type {Map}
6264
/// @prop {Number} border-radius [0] - The border radius used for carousel. Can be a fraction between 0 and 1, pixels, or percent.
65+
/// @prop {Number} button-elevation [0] - The elevation level, between 0-24, to be used for the carousel buttons.
6366
/// @requires {function} extend
6467
/// @requires {Map} $_light-carousel
6568
/// @requires {Map} $_square-shape-carousel
69+
/// @requires {Map} $_fluent-elevation-carousel
6670
$_fluent-carousel: extend(
6771
$_light-carousel,
6872
$_square-shape-carousel,
@@ -72,9 +76,11 @@ $_fluent-carousel: extend(
7276
/// Generates a bootstrap carousel schema.
7377
/// @type {Map}
7478
/// @prop {Number} border-radius [4px] - The border radius used for carousel. Can be a fraction between 0 and 1, pixels, or percent.
79+
/// @prop {Number} button-elevation [0] - The elevation level, between 0-24, to be used for the carousel buttons.
7580
/// @requires {function} extend
7681
/// @requires {Map} $_light-carousel
7782
/// @requires {Map} $_bootstrap-shape-carousel
83+
/// @requires {Map} $_bootstrap-elevation-carousel
7884
$_bootstrap-carousel: extend(
7985
$_light-carousel,
8086
$_bootstrap-shape-carousel,
@@ -94,10 +100,12 @@ $_bootstrap-carousel: extend(
94100
/// @prop {Map} indicator-dot-color [igx-color: 'surface', rgba: .6] - The idle indicator dot color.
95101
/// @prop {Map} indicator-active-dot-color [igx-color: 'surface'] - The active indicator dot color.
96102
/// @prop {Number} border-radius [0] - The border radius used for carousel. Can be a fraction between 0 and 1, pixels, or percent.
103+
/// @prop {Number} button-elevation [0] - The elevation level, between 0-24, to be used for the carousel buttons.
97104
///
98105
/// @requires {function} extend
99106
/// @requires {Map} $_light-carousel
100107
/// @requires {Map} $_default-shape-carousel
108+
/// @requires {Map} $_indigo-elevation-carousel
101109
$_indigo-carousel: extend(
102110
$_light-carousel,
103111
$_default-shape-carousel,

projects/igniteui-angular/src/lib/core/styles/themes/schemas/light/_chip.scss

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
///
3737
/// @requires {function} extend
3838
/// @requires {Map} $_round-shape-chip
39+
/// @requires {Map} $_default-elevation-chip
3940
/// @see $default-palette
4041
$_light-chip: extend(
4142
$_round-shape-chip,
@@ -129,12 +130,13 @@ $_light-chip: extend(
129130
/// @prop {Map} hover-selected-background [igx-color: ('primary', 500)] - The selected chip hover background color.
130131
/// @prop {Map} focus-selected-text-color [igx-contrast-color: ('primary', 500)] - The selected chip text focus color.
131132
/// @prop {Map} focus-selected-background [igx-color: ('primary', 500)] - The selected chip focus background color.
132-
/// @prop {Number} ghost-elevation [2] - The elevation level for the chip's ghost (dragging mode). Between 0-24.
133+
/// @prop {Number} ghost-elevation [2] - The elevation level, between 0-24, to be used for the chip's ghost (dragging mode).
133134
/// @prop {Number} border-radius [1] - The border radius used for chip. Can be a fraction between 0 and 1, pixels, or percent.
134135
///
135136
/// @requires {function} extend
136137
/// @requires {Map} $_light-chip
137138
/// @requires {Map} $_round-shape-chip
139+
/// @requires {Map} $_fluent-elevation-chip
138140
$_fluent-chip: extend(
139141
$_light-chip,
140142
$_round-shape-chip,
@@ -189,12 +191,13 @@ $_fluent-chip: extend(
189191
/// Generates a bootstrap chip schema.
190192
/// @type {Map}
191193
///
192-
/// @prop {Number} ghost-elevation [0] - The elevation level for the chip's ghost (dragging mode). Between 0-24.
194+
/// @prop {Number} ghost-elevation [0] - The elevation level, between 0-24, to be used for the chip's ghost (dragging mode).
193195
/// @prop {Number} border-radius [.25] - The border radius used for chip. Can be a fraction between 0 and 1, pixels, or percent.
194196
///
195197
/// @requires {function} extend
196198
/// @requires {Map} $_light-chip
197199
/// @requires {Map} $_bootstrap-shape-chip
200+
/// @requires {Map} $_bootstrap-elevation-chip
198201
$_bootstrap-chip: extend(
199202
$_light-chip,
200203
$_bootstrap-shape-chip,
@@ -207,7 +210,7 @@ $_bootstrap-chip: extend(
207210
/// Generates an indigo chip schema.
208211
/// @type {Map}
209212
///
210-
/// @prop {Number} ghost-elevation [0] - The elevation level for the chip's ghost (dragging mode). Between 0-24.
213+
/// @prop {Number} ghost-elevation [0] - The elevation level, between 0-24, to be used for the chip's ghost (dragging mode).
211214
/// @prop {Number} border-radius [3px] - The border radius used for chip. Can be a fraction between 0 and 1, pixels, or percent.
212215
/// @prop {Color} text-color [#fff] - The chip text color.
213216
/// @prop {Map} background [igx-color: ('grays', 600)] - The chip background color.
@@ -225,6 +228,7 @@ $_bootstrap-chip: extend(
225228
/// @requires {function} extend
226229
/// @requires {Map} $_light-chip
227230
/// @requires {Map} $_indigo-shape-chip
231+
/// @requires {Map} $_indigo-elevation-chip
228232
$_indigo-chip: extend(
229233
$_light-chip,
230234
$_indigo-shape-chip,

projects/igniteui-angular/src/lib/core/styles/themes/schemas/light/_dialog.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@
1414
/// @prop {Map} message-color [igx-color: 'surface', text-contrast: (), rgba: .6] - The dialog message text color.
1515
/// @prop {map} border-color [igx-color: ('grays', 300)] - The border color for dialog component.
1616
///
17-
/// @prop {Number} elevation [24] - The elevation level for the dialog.
17+
/// @prop {Number} elevation [24] - The elevation level, between 0-24, to be used for the dialog.
1818
/// @prop {Number} border-radius [.1] - The border radius used for dialog. Can be a fraction between 0 and 1, pixels, or percent.
1919
///
2020
/// @see $default-palette
2121
/// @requires {function} extend
2222
/// @requires {Map} $_default-shape-dialog
23+
/// @requires {Map} $_default-elevation-dialog
2324
$_light-dialog: extend(
2425
$_default-shape-dialog,
2526
$_default-elevation-dialog,
@@ -63,11 +64,12 @@ $_fluent-dialog: extend(
6364
/// Generates a bootstrap dialog schema.
6465
/// @type {Map}
6566
/// @prop {Map} border-color [igx-color: ('grays', 300)] - The border color for dialog component.
66-
/// @prop {Number} elevation [0] - The elevation level for the dialog.
67+
/// @prop {Number} elevation [0] - The elevation level, between 0-24, to be used for the dialog.
6768
/// @prop {Number} border-radius [4px] - The border radius used for dialog. Can be a fraction between 0 and 1, pixels, or percent.
6869
/// @requires {function} extend
6970
/// @requires {Map} $_light-dialog
7071
/// @requires {Map} $_bootstrap-shape-dialog
72+
/// @requires {Map} $_bootstrap-elevation-dialog
7173
$_bootstrap-dialog: extend(
7274
$_light-dialog,
7375
$_bootstrap-shape-dialog,

projects/igniteui-angular/src/lib/core/styles/themes/schemas/light/_drop-down.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
/// @prop {Number} item-border-radius [0] - The border radius used for the drop-down items. Can be a fraction between 0 and 1, pixels, or percent.
3232
/// @requires {function} extend
3333
/// @requires {Map} $_default-shape-drop-down
34+
/// @requires {Map} $_default-elevation-drop-down
3435
/// @see $default-palette
3536
$_light-drop-down: extend(
3637
$_default-shape-drop-down,
@@ -128,6 +129,7 @@ $_light-drop-down: extend(
128129
/// @requires {function} extend
129130
/// @requires {Map} $_light-drop-down
130131
/// @requires {Map} $_fluent-shape-drop-down
132+
/// @requires {Map} $_fluent-elevation-drop-down
131133
$_fluent-drop-down: extend(
132134
$_light-drop-down,
133135
$_fluent-shape-drop-down,
@@ -181,6 +183,7 @@ $_fluent-drop-down: extend(
181183
/// @requires {function} extend
182184
/// @requires {Map} $_light-drop-down
183185
/// @requires {Map} $_bootstrap-shape-drop-down
186+
/// @requires {Map} $_bootstrap-elevation-drop-down
184187
$_bootstrap-drop-down: extend(
185188
$_light-drop-down,
186189
$_bootstrap-shape-drop-down,
@@ -250,6 +253,7 @@ $_bootstrap-drop-down: extend(
250253
/// @requires {function} extend
251254
/// @requires {Map} $_light-drop-down
252255
/// @requires {Map} $_indigo-shape-drop-down
256+
/// @requires {Map} $_indigo-elevation-drop-down
253257
$_indigo-drop-down: extend(
254258
$_light-drop-down,
255259
$_indigo-shape-drop-down,

0 commit comments

Comments
 (0)