Skip to content

Commit 66420c8

Browse files
authored
Merge pull request #5794 from IgniteUI/badge-shadow
refactor(badge): remove `$disable-shadow` property from theme
2 parents 4715b6a + 1b803e3 commit 66420c8

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ Next example shows how you can use the Fluent theme.
2424
}
2525
```
2626

27+
### Theme Changes
28+
`igx-badge-theme` - Removed the `$disable-shadow` property to mitigate confusion when specifying `$shadow` explicitly.
29+
2730
For more information about the theming please read our [documentation](https://www.infragistics.com/products/ignite-ui-angular/angular/components/themes/index.html)
2831

2932
### New Features
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "../../common/schema/theme-props.schema.json",
3+
"changes": [{
4+
"name": "$disable-shadow",
5+
"remove": true,
6+
"owner": "igx-badge-theme"
7+
}]
8+
}

projects/igniteui-angular/src/lib/core/styles/components/badge/_badge-theme.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
/// @param {Color} $text-color [null] - The text color used.
1616
/// @param {Color} $border-color [null] - The border color used.
1717
/// @param {Color} $background-color [null] - The background color used.
18-
/// @param {Bool} $disable-shadow [true] - Sets the badge shadow visibility.
1918
/// @param {Bool} $disable-border [true] - Sets the badge border visibility.
2019
/// @param {box-shadow} $shadow [null] - Sets a shadow to be used for the badge.
2120
/// @param {border-radius} $border-radius [null] - The border radius used for badge component.
@@ -52,7 +51,6 @@
5251
$background-color: null,
5352
$shadow: null,
5453
55-
$disable-shadow: true,
5654
$disable-border: true
5755
) {
5856
$name: 'igx-badge';
@@ -77,10 +75,6 @@
7775
$shadow: igx-elevation($elevations, $elevation);
7876
}
7977

80-
@if $disable-shadow {
81-
$shadow: none;
82-
}
83-
8478
@return extend($theme, (
8579
name: $name,
8680
palette: $palette,

0 commit comments

Comments
 (0)