Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/charts/api/charts.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2119,7 +2119,7 @@ export type MetricElementEvent = {
// Warning: (ae-forgotten-export) The symbol "FontWeight" needs to be exported by the entry point index.d.ts
//
// @public
export type MetricFontWeight = Extract<FontWeight, 'bold' | 'normal'>;
export type MetricFontWeight = Extract<FontWeight, 'bold' | 'normal' | 500>;

// @alpha (undocumented)
export interface MetricSpec extends Spec {
Expand Down
2 changes: 1 addition & 1 deletion packages/charts/src/utils/themes/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ export interface HeatmapStyle {
* Metric font weight options for text styling.
* @public
*/
export type MetricFontWeight = Extract<FontWeight, 'bold' | 'normal'>;
export type MetricFontWeight = Extract<FontWeight, 'bold' | 'normal' | 500>;

/**
* Style options for the Metric chart type.
Expand Down
4 changes: 2 additions & 2 deletions storybook/stories/metric/7_layout.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ export const Example: ChartsStory = (_, { title: storyTitle, description }) => {
const titlesTextAlign = getTextAlignKnob('Title and subtitle alignment', 'left', textConfigurationAndPositionGroup);
const titleWeight = select(
'Title weight',
{ Bold: 'bold', Normal: 'normal' },
'normal',
{ Bold: 'bold', Medium: 500, Normal: 'normal' },
500,
textConfigurationAndPositionGroup,
);
// Value (primary metric)
Expand Down