Skip to content

Commit

Permalink
fix: inline-help docs for color input (#4704)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlockhart authored May 29, 2024
1 parent d1555e6 commit 5db38b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/inputs/docs/input-color.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ input.addEventListener('change', (e) => {
console.log(input.value);
});
```

### Slots

* `inline-help`: Help text that will appear below the input. Use this only when other helpful cues are not sufficient, such as a carefully-worded label.
<!-- docs: end hidden content -->

### Accessibility Properties
Expand Down
1 change: 1 addition & 0 deletions components/inputs/input-color.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ const SWATCH_TRANSPARENT = `<svg xmlns="http://www.w3.org/2000/svg" width="24" h

/**
* This component allows for inputting a HEX color value.
* @slot inline-help - Help text that will appear below the input. Use this only when other helpful cues are not sufficient, such as a carefully-worded label.
* @fires change - Dispatched when an alteration to the value is committed by the user.
*/
class InputColor extends InputInlineHelpMixin(PropertyRequiredMixin(FocusMixin(FormElementMixin(LocalizeCoreElement(LitElement))))) {
Expand Down

0 comments on commit 5db38b4

Please sign in to comment.