Skip to content

Commit fdfeaad

Browse files
committed
docs
1 parent 7d9352e commit fdfeaad

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

core/src/components.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ export namespace Components {
430430
*/
431431
"color"?: Color;
432432
/**
433-
* Set to `"bold"` for a badge with vibrant, bold colors or to `"subtle"` for a badge with muted, subtle colors.
433+
* Set to `"bold"` for a badge with vibrant, bold colors or to `"subtle"` for a badge with muted, subtle colors. Only applies to the `ionic` theme.
434434
*/
435435
"hue"?: 'bold' | 'subtle';
436436
/**
@@ -5875,7 +5875,7 @@ declare namespace LocalJSX {
58755875
*/
58765876
"color"?: Color;
58775877
/**
5878-
* Set to `"bold"` for a badge with vibrant, bold colors or to `"subtle"` for a badge with muted, subtle colors.
5878+
* Set to `"bold"` for a badge with vibrant, bold colors or to `"subtle"` for a badge with muted, subtle colors. Only applies to the `ionic` theme.
58795879
*/
58805880
"hue"?: 'bold' | 'subtle';
58815881
/**

core/src/components/badge/badge.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ export class Badge implements ComponentInterface {
3131
/**
3232
* Set to `"bold"` for a badge with vibrant, bold colors or to `"subtle"` for
3333
* a badge with muted, subtle colors.
34+
*
35+
* Only applies to the `ionic` theme.
3436
*/
3537
@Prop() hue?: 'bold' | 'subtle';
3638

@@ -95,7 +97,7 @@ export class Badge implements ComponentInterface {
9597

9698
// The 'subtle' hue is the default for badges containing text or icons
9799
// The 'bold' hue is used when inside of an avatar, button, tab button,
98-
// or when the badge is empty (no text or icon)
100+
// or when the badge is empty (no text or icon).
99101
private getHue(): string | undefined {
100102
const { hue } = this;
101103

0 commit comments

Comments
 (0)