-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update slash icon, update from XD, and and rename a few tokens (#389)
🤨 Rationale Replaces temporary forward-slash icon with proper icon Replaces Enterprise green with ForestGreen Replaces Selection100 with DigitalGreenLight Replaces Banner_Fail_100_DarkUI_ with Banner_Fail_100_DarkUI Adds DigitalGreenDark, PowerGreen, and Black22 Rename fillColorSelected to fillSelectedColor to match token naming schema. Rename fill-selected-hover-color to fill-hover-selected-color to match token naming schema. 👩💻 Implementation Followed CONTRIBUTING docs to import new icon. Used XD plugin to import latest Nimble_Components doc 🧪 Testing Local builds and Storybook review ✅ Checklist I have updated the project documentation to reflect my changes or determined no changes are needed.
- Loading branch information
1 parent
6c464fa
commit cf0ebf7
Showing
46 changed files
with
2,793 additions
and
2,423 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
change/@ni-nimble-components-2fdd0ccc-2fe4-4921-a6c9-d99af5c06cc5.json
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,7 @@ | ||
{ | ||
"type": "major", | ||
"comment": "Renamed fillHoverSelectedColor & fillSelectedColor tokens.", | ||
"packageName": "@ni/nimble-components", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@ni-nimble-tokens-e02db61c-901f-4829-933a-7375ff6b6806.json
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,7 @@ | ||
{ | ||
"type": "major", | ||
"comment": "New `forward-slash` icon. Updated color tokens - `Enterprise` is now `ForestGreen`, `Selection100` is now `DigitalGreenLight`, `Banner_Fail_100_DarkUI_` is now `Banner_Fail_100_DarkUI`. Also adds `DigitalGreenDark`, `PowerGreen`, and `Black22`.", | ||
"packageName": "@ni/nimble-tokens", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
import { css } from '@microsoft/fast-element'; | ||
import { focusVisible } from '../utilities/style/focus'; | ||
|
||
import { fillColorSelected } from '../theme-provider/design-tokens'; | ||
import { fillSelectedColor } from '../theme-provider/design-tokens'; | ||
import { styles as buttonStyles } from '../patterns/button/styles'; | ||
|
||
export const styles = css` | ||
${buttonStyles} | ||
.control[aria-pressed='true'] { | ||
background-color: ${fillColorSelected}; | ||
border-color: ${fillColorSelected}; | ||
background-color: ${fillSelectedColor}; | ||
border-color: ${fillSelectedColor}; | ||
} | ||
.control[aria-pressed='true']:hover { | ||
background-color: ${fillColorSelected}; | ||
background-color: ${fillSelectedColor}; | ||
} | ||
.control[aria-pressed='true']${focusVisible} { | ||
background-color: ${fillColorSelected}; | ||
background-color: ${fillSelectedColor}; | ||
} | ||
.control[aria-pressed='true'][disabled] { | ||
background-color: ${fillColorSelected}; | ||
border-color: ${fillColorSelected}; | ||
background-color: ${fillSelectedColor}; | ||
border-color: ${fillSelectedColor}; | ||
} | ||
.control[aria-pressed='true'][disabled]:hover { | ||
background-color: ${fillColorSelected}; | ||
border-color: ${fillColorSelected}; | ||
background-color: ${fillSelectedColor}; | ||
border-color: ${fillSelectedColor}; | ||
} | ||
`; |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions
36
packages/nimble-tokens/assets/088a103e-6fc7-45d9-8cbf-7f613cb54d26.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.