|
9 | 9 | * @prop --focus-ring-color: Color of the focus ring |
10 | 10 | * @prop --focus-ring-width: Width of the focus ring |
11 | 11 | */ |
12 | | - --background: #{globals.$ion-primitives-neutral-100}; |
13 | | - --color: #{globals.$ion-primitives-neutral-800}; |
14 | 12 | --focus-ring-color: #{globals.$ion-border-focus-default}; |
15 | 13 | --focus-ring-width: #{globals.$ion-border-size-050}; |
16 | 14 |
|
|
31 | 29 | :host(.chip-outline) { |
32 | 30 | border-width: globals.$ion-border-size-025; |
33 | 31 | border-style: globals.$ion-border-style-solid; |
34 | | - border-color: globals.$ion-primitives-neutral-300; |
35 | 32 | } |
36 | 33 |
|
37 | 34 | // Chip: Focus |
|
46 | 43 | // --------------------------------------------- |
47 | 44 |
|
48 | 45 | @media (any-hover: hover) { |
49 | | - :host(:hover) { |
| 46 | + :host(.chip-subtle:hover) { |
50 | 47 | --background: #{globals.$ion-primitives-neutral-200}; |
51 | 48 | } |
52 | 49 |
|
53 | 50 | :host(.chip-bold:hover) { |
54 | 51 | --background: #{globals.$ion-primitives-neutral-1100}; |
55 | 52 | } |
56 | 53 |
|
57 | | - :host(.ion-color:hover) { |
| 54 | + :host(.chip-subtle.ion-color:hover) { |
58 | 55 | background: globals.current-color(tint, $subtle: true); |
59 | 56 | } |
60 | 57 |
|
|
106 | 103 | font-size: globals.$ion-font-size-350; |
107 | 104 | } |
108 | 105 |
|
| 106 | +// Subtle Chip |
| 107 | +// --------------------------------------------- |
| 108 | + |
| 109 | +:host(.chip-subtle) { |
| 110 | + --background: #{globals.$ion-primitives-neutral-100}; |
| 111 | + --color: #{globals.$ion-primitives-neutral-800}; |
| 112 | +} |
| 113 | + |
| 114 | +:host(.chip-outline.chip-subtle) { |
| 115 | + border-color: globals.$ion-primitives-neutral-300; |
| 116 | +} |
| 117 | + |
109 | 118 | // Bold Chip |
110 | 119 | // --------------------------------------------- |
111 | 120 |
|
|
124 | 133 | // --------------------------------------------- |
125 | 134 |
|
126 | 135 | // Subtle |
127 | | -:host(.ion-color) { |
| 136 | +:host(.chip-subtle.ion-color) { |
128 | 137 | background: globals.current-color(base, $subtle: true); |
129 | 138 | color: globals.current-color(contrast, $subtle: true); |
130 | 139 | } |
131 | 140 |
|
132 | | -:host(.chip-outline.ion-color) { |
| 141 | +:host(.chip-subtle.chip-outline.ion-color) { |
133 | 142 | border-color: globals.current-color(shade, $subtle: true); |
134 | 143 | } |
135 | 144 |
|
|
0 commit comments