Skip to content

Commit

Permalink
fix: slot documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
adixon-adobe authored and Westbrook committed Mar 9, 2021
1 parent 91241b7 commit 0ebd260
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 3 additions & 1 deletion packages/action-menu/src/ActionMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ import { MoreIcon } from '@spectrum-web-components/icons-workflow';
import actionMenuStyles from './action-menu.css.js';

/**
* @slot options - The menu with options that will display when the picker is open
* @element sp-action-menu
* @slot icon - The icon to use for action button
* @slot label - The label to use on for the action button
*/
export class ActionMenu extends ObserveSlotText(PickerBase, 'label') {
public static get styles(): CSSResultArray {
Expand Down
1 change: 0 additions & 1 deletion packages/picker/src/Picker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ type PickerSize = Exclude<ElementSize, 'xxl'>;
/**
* @element sp-picker
* @slot label - The placeholder content for the picker
* @slot {"sp-menu"} - The menu of options that will display when the picker is open
*
* @fires sp-open - Announces that the overlay has been opened
* @fires sp-close - Announces that the overlay has been closed
Expand Down
7 changes: 3 additions & 4 deletions packages/split-button/src/SplitButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,10 @@ const chevronClass = {
xl: 'spectrum-UIIcon-ChevronDown300',
};

type SplitButtonSize = Exclude<ElementSize, 'xxl'>;

/**
* @slot options - The menu with options that will display when the picker is open
*/
* @element sp-split-button
**/
type SplitButtonSize = Exclude<ElementSize, 'xxl'>;
export class SplitButton extends SizedMixin(PickerBase) {
public static get styles(): CSSResultArray {
return [styles, chevronStyles];
Expand Down

0 comments on commit 0ebd260

Please sign in to comment.