-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update Todo component to new Fluent designs (#1967)
implement generic picker for current list picking bubble up selectionChanged event move todo functions, add selected date functionality update todo theming and style fixes include rest/active task input behavior change svg default color to currentColor use strings variable for fluent-text-field aria-label changes to make new task and tasks list use 100% of width provided improved rendering of tasks with long names on mobile widths removed obsolete background and padding css properties fix checkmark issues update shimmers to new design use fluent-text-field for calendar date input~ remove calendar icon in new task add part attribute to picker fluent-combobox remove anonymous functions, fix build add task margins and shadows use hidden svgs for task checking add new css tokens, remove commented code rewrite handleSelectionChanged as a synchronous method use fluent-checkbox to fix checking issues --------- Co-authored-by: Gavin Barron <gavinbarron@microsoft.com> Co-authored-by: Musale Martin <martinmusale@microsoft.com> Co-authored-by: Musale Martin <martinmshale@gmail.com> Co-authored-by: Sébastien Levert <sebastienlevert@users.noreply.github.com>
- Loading branch information
1 parent
fc4f1e0
commit c7bf047
Showing
14 changed files
with
577 additions
and
547 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
packages/mgt-components/src/components/mgt-picker/mgt-picker.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* ------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. | ||
* See License in the project root for license information. | ||
* ------------------------------------------------------------------------------------------- | ||
*/ | ||
|
||
@import '../../../../../node_modules/office-ui-fabric-core/dist/sass/References'; | ||
@import '../../styles/shared-styles.scss'; | ||
@import './mgt-picker.theme.scss'; | ||
|
||
:host { | ||
font-family: $font-family; | ||
} | ||
|
||
:host .picker, | ||
mgt-picker .picker { | ||
background-color: $picker-background-color; | ||
} | ||
|
||
[dir='rtl'] { | ||
.picker { | ||
direction: rtl; | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/mgt-components/src/components/mgt-picker/mgt-picker.theme.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/** | ||
* ------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. | ||
* See License in the project root for license information. | ||
* ------------------------------------------------------------------------------------------- | ||
*/ | ||
|
||
@import '../../styles/shared-sass-variables.scss'; | ||
|
||
$picker-background-color: var(--picker-background-color, transparent); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.