Skip to content

Commit

Permalink
Merge branch 'develop' into add-notice-component
Browse files Browse the repository at this point in the history
  • Loading branch information
tbusillo authored Aug 2, 2023
2 parents a355e8e + 10f53c9 commit a425f9d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions docs/pages/components/Tooltip.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ import { Tooltip } from '@deque/cauldron-react'

Cauldron's tooltip relies on [Popper](https://popper.js.org/) to position tooltips dynamically. Tooltips can be triggered from any focusable element via a `target` attribute pointed to an HTMLElement or React ref object.

<Note>

`Tooltip` is intended to be used with elements that are interactive or are keyboard accessible such as buttons or links. For non-interactive elements such as informational tooltips attached to an icon, consider using [TooltipTabstop](./TooltipTabstop) instead.

</Note>

### Text Tooltips

Text Tooltips are the default variant and are intended to show short single-line text hints.
Expand Down
4 changes: 2 additions & 2 deletions packages/styles/forms.css
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ textarea.Field--has-error:focus:hover,
box-sizing: border-box;
font-size: var(--text-size-small);
color: var(--field-content-color);
min-width: var(--input-min-width);
min-width: min(var(--input-min-width), 100%);
}

.Field__text-input[disabled],
Expand All @@ -323,7 +323,7 @@ textarea.Field--has-error:focus:hover,
display: block;
min-height: 56px;
font-size: var(--text-size-small);
min-width: var(--input-min-width);
min-width: min(var(--input-min-width), 100%);
padding: var(--space-half);
max-width: 500px;
color: var(--field-content-color);
Expand Down

0 comments on commit a425f9d

Please sign in to comment.