You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fd38e2d
Browse filesBrowse the repository at this point in the historyBrowse files
Every tone is visible on the icon frame. The row text keeps the surrounding text color.
84
+
Tone colors the optional icon frame. The label, value, and detail keep the
85
+
surrounding text color, so they also work inside a colored MetricStrip.
102
86
103
87
<ComponentExample
88
+
data-toc-ignore
104
89
label="All ten semantic tones"
105
90
caption="Switch the site theme to compare the same samples in both palettes."
106
91
>
@@ -112,12 +97,13 @@ Every tone is visible on the icon frame. The row text keeps the surrounding text
112
97
## A number with the right context
113
98
114
99
<ComponentExample
100
+
data-toc-ignore
115
101
label="Display text, optional decoration, and supporting content"
116
102
caption="value is display text; formatting, units, data fetching, and change calculations belong to your application."
117
103
>
118
104
<divclass="component-appearance-grid">
119
105
<divclass="component-appearance-cell">
120
-
<code>Minimal</code><MetricItemvalue="48"/>
106
+
<code>Minimal, including zero</code><MetricItemvalue="0"/>
121
107
</div>
122
108
<divclass="component-appearance-cell">
123
109
<code>Label and detail</code><MetricItemlabel="Guides"value="13"detail="Updated this week"/>
@@ -155,7 +141,13 @@ This component exposes tone but no variant or variantMode. Its icon uses a fixed
155
141
156
142
## Behavior and accessibility
157
143
158
-
The value is text, so units and formatted numbers remain under your control. Tone affects the optional icon frame; it does not imply a trend or change the value’s meaning.
144
+
The value is text, so units and formatted numbers remain under your control.
145
+
Labels and details explain what it means; the icon is decorative. Tone affects
146
+
the optional icon frame and does not imply a trend or change the value's meaning.
147
+
148
+
MetricItem uses existing typography and layout utilities and adds no custom
149
+
stylesheet. It has no background of its own: use it directly, place it inside
150
+
Panel, or group related items in MetricStrip.
159
151
160
152
## API reference
161
153
@@ -183,8 +175,8 @@ The value is text, so units and formatted numbers remain under your control. Ton
183
175
defaultValue="not set"
184
176
>
185
177
<p>
186
-
Visible label. Use language that describes the control or value in its
187
-
surrounding context.
178
+
A short, readable label above the value. Name what is being measured or
179
+
described.
188
180
</p>
189
181
</ApiProperty>
190
182
@@ -235,7 +227,7 @@ The value is text, so units and formatted numbers remain under your control. Ton
235
227
<divclass="api-contract">
236
228
<p>
237
229
<strong>Default slot:</strong> content after the detail. Register
238
-
defineMetricItemComponent with Flex and Icon dependencies.
230
+
defineMetricItemComponent with Flex, IconFrame, and Icon dependencies.
0 commit comments