Skip to content

Commit

Permalink
fix: fix tooltip documentation and interfaces (#546)
Browse files Browse the repository at this point in the history
  • Loading branch information
Meztimuro authored Jun 4, 2021
1 parent e1e19a1 commit 1014593
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
1 change: 1 addition & 0 deletions packages/big-design/src/components/Select/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ interface BaseItem extends Omit<LiHTMLAttributes<HTMLLIElement>, 'value'> {
description?: string;
disabled?: boolean;
icon?: React.ReactElement;
tooltip?: string;
}

export interface SelectOption<T> extends BaseItem {
Expand Down
10 changes: 3 additions & 7 deletions packages/docs/PropTables/DropdownPropTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,7 @@ const dropdownItemProps: Prop[] = [
{
name: 'tooltip',
types: 'string',
description: (
<>
Adds tooltip for disabled item. Default placement is set to <Code highlight={false}>right</Code>.
</>
),
description: <>Adds tooltip for disabled item.</>,
},
{
name: 'type',
Expand Down Expand Up @@ -184,8 +180,8 @@ const dropdownLinkProps: Prop[] = [
},
{
name: 'tooltip',
types: "{ message: string, placement?: 'left' | 'right' }",
description: "Adds tooltip for disabled item. Placement is optional, if not passed - 'left' is set.",
types: 'string',
description: <>Adds tooltip for disabled item.</>,
},
{
name: 'type',
Expand Down
10 changes: 10 additions & 0 deletions packages/docs/PropTables/SelectPropTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@ const selectOptionProps: Prop[] = [
</>
),
},
{
name: 'tooltip',
types: 'string',
description: <>Adds tooltip for disabled item.</>,
},
{
name: 'icon',
types: (
Expand Down Expand Up @@ -233,6 +238,11 @@ const selectActionProps: Prop[] = [
</>
),
},
{
name: 'tooltip',
types: 'string',
description: <>Adds tooltip for disabled item.</>,
},
{
name: 'icon',
types: (
Expand Down

0 comments on commit 1014593

Please sign in to comment.