Skip to content

Commit

Permalink
Merge pull request #2994 from Autodesk/feat/add-halo-error-roles
Browse files Browse the repository at this point in the history
Feat/add halo error roles
  • Loading branch information
wmui51 authored Apr 18, 2023
2 parents 6f4b4d4 + 9348af2 commit d0c555d
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/theme-data/src/baseTheme/components/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,15 @@ export default {
alpha: 0.2,
},
},
"input.value.error.highlightColor": {
type: COLOR,
value: {
ref: "colorScheme.status.error",
},
transform: {
alpha: 0.25,
},
},
"input.value.lineHeight": {
type: LINE_HEIGHT,
value: {
Expand Down
9 changes: 9 additions & 0 deletions packages/theme-data/src/baseTheme/system/colorScheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,15 @@ export default {
},
type: COLOR,
},
"halo.error": {
value: {
ref: "colorScheme.status.error",
},
transform: {
alpha: 0.25,
},
type: COLOR,
},
"halo.focus": {
value: {
ref: "colorScheme.reference.accent",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,9 @@ export default {
ref: "basics.colors.secondary.darkBlue.200",
},
},
"input.value.error.highlightColor": {
transform: {
alpha: 0.35,
},
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,11 @@ export default {
alpha: 0.25,
},
},
"halo.error": {
transform: {
alpha: 0.35,
},
},
"indicator.default": {
value: {
ref: "colorScheme.reference.base",
Expand Down

0 comments on commit d0c555d

Please sign in to comment.