File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed
packages/mgt-components/src/components/mgt-people-picker
stories/components/peoplePicker Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 1111
1212$people-picker-result-person-avatar-size : var (--people-picker-result-person-avatar-size , 40px );
1313$people-picker-selected-person-avatar-size : var (--people-picker-selected-person-avatar-size , 24px );
14+ $people-picker-font-size : var (--people-picker-font-size , 14px );
1415
1516:host {
1617 --person-details-wrapper-width : 0 ;
@@ -19,6 +20,7 @@ $people-picker-selected-person-avatar-size: var(--people-picker-selected-person-
1920
2021 fluent-text-field {
2122 width : 100% ;
23+ font-size : $people-picker-font-size ;
2224
2325 & ::part (root ) {
2426 display : flex ;
Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ export const registerMgtPeoplePickerComponent = () => {
9999 * @cssprop --people-picker-remove-selected-close-icon-color - {Color} the remove selected person close icon color.
100100 * @cssprop --people-picker-result-person-avatar-size - {Length} the avatar size of the person in the result. Default is 40px.
101101 * @cssprop --people-picker-selected-person-avatar-size - {Length} the avatar size of the selected person. Default is 24px.
102+ * @cssprop --people-picker-font-size - {Length} the font size of the text in the people picker input. Default is 14px.
102103 */
103104export class MgtPeoplePicker extends MgtTemplatedTaskComponent {
104105 /**
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ export const customCSSProperties = () => html`
3737 --people-picker-input-placeholder-text-color : white;
3838 --people-picker-search-icon-color : yellow;
3939 --people-picker-remove-selected-close-icon-color : blue;
40+ --people-picker-font-size : 16px ;
4041
4142 /** You can also change the person tokens **/
4243 --person-line1-text-color : blue;
You can’t perform that action at this time.
0 commit comments