Skip to content

Commit 1f3d303

Browse files
authored
Merge pull request #343 from aws/dogusata/input-border-color
Added separate border color to input
2 parents 9b25671 + 430a839 commit 1f3d303

File tree

95 files changed

+21
-6
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+21
-6
lines changed

example/src/theme-builder/base-theme-light-config.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,20 @@
6868
"alpha": "100",
6969
"value": "#006ab1"
7070
},
71+
"--mynah-color-text-input-border": {
72+
"type": "color",
73+
"description": "Border of the chat input textbox, when it does not have focus",
74+
"category": "border-style",
75+
"alpha": "100",
76+
"value": "#fafcff"
77+
},
78+
"--mynah-color-text-input-border-focused": {
79+
"type": "color",
80+
"description": "Border of the chat input textbox, when it has focus",
81+
"category": "border-style",
82+
"alpha": "100",
83+
"value": "#e6e8eb"
84+
},
7185
"--mynah-color-text-input": {
7286
"type": "color",
7387
"description": "Input text color used in input fields",

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@aws/mynah-ui",
33
"displayName": "AWS Mynah UI",
4-
"version": "4.35.0",
4+
"version": "4.35.1",
55
"description": "AWS Toolkit VSCode and Intellij IDE Extension Mynah UI",
66
"publisher": "Amazon Web Services",
77
"license": "Apache License 2.0",

src/styles/_variables.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
--mynah-color-text-disabled: var(--vscode-disabledForeground, var(--mynah-color-text-weak));
3131
--mynah-color-text-link: var(--vscode-textLink-foreground);
3232
--mynah-color-text-link-alternate: var(--mynah-color-button-reverse);
33+
--mynah-color-text-input-border: var(--mynah-color-bg);
34+
--mynah-color-text-input-border-focused: var(--mynah-color-border-default);
3335
--mynah-color-text-input: var(--vscode-input-foreground);
3436
--mynah-color-text-input-placeholder: var(--vscode-input-placeholderForeground, var(--mynah-color-text-disabled));
3537

src/styles/components/chat/_chat-prompt-wrapper.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,14 +367,13 @@
367367
pointer-events: none;
368368
}
369369
&::before {
370-
opacity: 0;
371-
@include gradient-border($gradient: var(--mynah-color-gradient-input), $background: var(--mynah-input-bg));
370+
border: var(--mynah-border-width) solid var(--mynah-color-text-input-border);
372371
}
373372
}
374373

375374
&.input-has-focus > .mynah-chat-prompt {
376375
&::before {
377-
opacity: 1;
376+
border: var(--mynah-border-width) solid var(--mynah-color-text-input-border-focused);
378377
}
379378
}
380379

0 commit comments

Comments
 (0)