Skip to content

Commit

Permalink
fix: increase area for placeholder (#2921)
Browse files Browse the repository at this point in the history
allows the input to expand to show a larger placeholder
adds a story for the placeholder attribute
  • Loading branch information
gavinbarron committed Dec 19, 2023
1 parent 86697f4 commit 513031b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ $people-picker-selected-person-avatar-size: var(--people-picker-selected-person-
}

&::part(control) {
width: min-content;
width: auto;
flex-grow: 1;
min-width: 25%;
height: calc((var(--base-height-multiplier) + var(--density)) * var(--design-unit) * 1px);
word-spacing: inherit;
text-indent: inherit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ export default {
decorators: [withCodeEditor]
};

export const setPlaceholder = () => html`
<mgt-people-picker placeholder="Select people"></mgt-people-picker>
`;

export const showPresence = () => html`
<mgt-people-picker show-presence></mgt-people-picker>
`;
Expand Down

0 comments on commit 513031b

Please sign in to comment.