Skip to content

Commit

Permalink
docs(react): simplify data-color jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
unekinn committed Nov 19, 2024
1 parent b08ade8 commit 131db58
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
3 changes: 1 addition & 2 deletions packages/react/src/components/Accordion/Accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ export type AccordionProps = MergeRight<
DefaultProps & HTMLAttributes<HTMLDivElement>,
{
/**
* Accordion background color. Unlike most components, data-color must be specified
* on this element to hava an effect. Otherwise the default is used.
* Accordion background color.
* @default neutral
*/
'data-color'?: 'subtle' | Color;
Expand Down
4 changes: 1 addition & 3 deletions packages/react/src/components/Card/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ export type CardProps = MergeRight<
DefaultProps & HTMLAttributes<HTMLDivElement>,
{
/**
* Changes background & border color. Unlike most components, data-color
* must be specified on this element — not an ancestor — to have an effect.
* Otherwise the default is used.
* Changes background & border color.
* @default neutral
*/
'data-color'?: 'subtle' | CustomColors;
Expand Down
3 changes: 1 addition & 2 deletions packages/react/src/components/Popover/Popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ export type PopoverProps = MergeRight<
*/
placement?: Placement;
/**
* The color of the popover. Unlike most components, data-color must be specified
* on this element — not an ancestor — to have an effect. Otherwise the default is used.
* The color of the popover.
* @default neutral
*/
'data-color'?: Color;
Expand Down
3 changes: 1 addition & 2 deletions packages/react/src/components/Tag/Tag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ export type TagProps = MergeRight<
DefaultProps & HTMLAttributes<HTMLSpanElement>,
{
/**
* Color of the tag. Unlike most components, data-color must be specified on this element
* — not an ancestor — to have an effect. Otherwise the default is used.
* Color of the tag.
* @default neutral
*/
'data-color'?: Color;
Expand Down

0 comments on commit 131db58

Please sign in to comment.