Skip to content

Commit 88abe02

Browse files
authored
Merge pull request #430 from Ajay-aot/bugfix/FWF-4187-color-updations
Bugfix/fwf 4187 color updations
2 parents 11fe81c + 4605f42 commit 88abe02

File tree

17 files changed

+274
-269
lines changed

17 files changed

+274
-269
lines changed

forms-flow-components/src/components/SvgIcons/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const computedStyle = getComputedStyle(document.documentElement);
22
const baseColor = computedStyle.getPropertyValue("--ff-primary");
3-
const grayColor = computedStyle.getPropertyValue("--ff-gray-800");
3+
const grayColor = computedStyle.getPropertyValue("--ff-gray-dark");
44
export const ChevronIcon = ({
55
color = baseColor,
66
width = "10",

forms-flow-nav/src/sidenav/Sidebar.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999

100100
.user-container {
101101
text-align: center;
102-
border-top: 0.031rem solid var(--ff-gray-600);
102+
border-top: 0.031rem solid var(--ff-gray-medium);
103103
color : var(--navbar-main-menu-active-font-color);
104104
.username {
105105
color: var(--navbar-main-menu-active-font-color);

forms-flow-nav/src/sidenav/hamburgerMenu.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function HamburgerMenu({ props }) {
2626
aria-label="Open sidebar"
2727
>
2828
{/* <img src={hamburger} alt="hamburger icon" /> */}
29-
<HamburgerIcon data-testid="hamburger-button" aria-label="hamburger button" color={getComputedStyle(document.documentElement).getPropertyValue("--ff-gray-800")} />
29+
<HamburgerIcon data-testid="hamburger-button" aria-label="hamburger button" color={getComputedStyle(document.documentElement).getPropertyValue("--ff-gray-darkest")} />
3030
</button>
3131
<Navbar.Brand href="" className="mx-auto">
3232
{/* <img className="" src={Appname} alt="applicationName" /> */}

forms-flow-theme/scss/_aiAssistant.scss

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// Variables for reused values
2-
$secondary: var(--ff-secondary);
2+
$primary-light: var(--ff-primary-light);
3+
$gray-darkest: var(--ff-gray-darkest);
4+
$gray-medium: var(--ff-gray-medium);
5+
$gray-medium-dark: var(--ff-gray-medium-dark);
36
.ai-modal {
47
.modal-dialog {
58
margin-top: 2.5vh !important;
@@ -8,7 +11,7 @@ $secondary: var(--ff-secondary);
811
}
912

1013
.modal-header {
11-
border-bottom: 1px solid var(--ff-gray-000) !important;
14+
border-bottom: 1px solid $gray-medium !important;
1215
}
1316

1417
.modal-body {
@@ -35,7 +38,7 @@ $secondary: var(--ff-secondary);
3538
}
3639

3740
.form-column {
38-
background-color: var(--ff-gray-000) !important;
41+
background-color: $gray-medium !important;
3942
border-bottom-right-radius: var(--radius-0150) !important;
4043
height: 100%;
4144
}
@@ -88,13 +91,13 @@ $secondary: var(--ff-secondary);
8891
.ai-message-box {
8992
margin-right: var(--spacer-200);
9093
padding: var(--spacer-200);
91-
background: $secondary !important;
94+
background: $primary-light !important;
9295
border-radius: var(--radius-0100);
9396
margin-top: var(--spacer-050);
9497
}
9598

9699
.ai-user-message {
97-
background-color: var(--ff-gray-100) !important;
100+
background-color: $gray-medium !important;
98101
padding: var(--spacer-200);
99102
margin-left: var(--spacer-200);
100103
border-radius: var(--radius-0100);
@@ -104,7 +107,7 @@ $secondary: var(--ff-secondary);
104107
.ai-response-loading {
105108
border-radius: var(--radius-0100);
106109
padding: var(--spacer-200);
107-
background: $secondary !important;
110+
background: $primary-light !important;
108111
max-width: 0.938rem;
109112

110113
.loading-dots {
@@ -115,7 +118,7 @@ $secondary: var(--ff-secondary);
115118
div {
116119
width: 0.125rem;
117120
height: 0.125rem;
118-
background-color: var(--ff-gray-800) !important;
121+
background-color: $gray-darkest !important;
119122
border-radius: 50%;
120123
margin: 0 2px;
121124
animation: loading 1s infinite;
@@ -166,8 +169,8 @@ $secondary: var(--ff-secondary);
166169
}
167170

168171
&::-webkit-scrollbar-thumb {
169-
background-color: var(--ff-gray-200);
170-
border: 1px solid var(--ff-gray-200);
172+
background-color: $gray-medium;
173+
border: 1px solid $gray-medium;
171174
border-radius: var(--radius-0125);
172175
}
173176
}
@@ -177,7 +180,7 @@ $secondary: var(--ff-secondary);
177180
background-color: var(--ff-white) !important;
178181
padding: var(--spacer-200) var(--spacer-100);
179182
border-bottom-right-radius: var(--radius-0150) !important;
180-
border-left: 1px solid var(--ff-gray-000) !important;
183+
border-left: 1px solid $gray-medium !important;
181184
;
182185
}
183186

forms-flow-theme/scss/_button.scss

Lines changed: 27 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
@import '_mixins';
22
// Variables for reused values
33
$primary: var(--ff-primary);
4+
$primary-light: var(--ff-primary-light);
45
$black-color: var(--ff-black);
56
$white-color: var(--ff-white);
6-
$gray-000: var(--ff-gray-000);
7+
$gray-dark: var(--ff-gray-dark);
8+
$gray-medium: var(--ff-gray-medium);
9+
$gray-medium-dark: var(--ff-gray-medium-dark);
710
$dropdown-btn-size: 3.2275rem;
811
$btn-border-radius: 50%;
912
$btn-font-weight: bold;
1013

1114
.btn-light {
12-
background-color: $gray-100 !important;
15+
background-color: $white-color !important;
1316

1417
&:hover {
15-
border: 0.0625rem solid var(--ff-gray-400) !important;
16-
background-color: var(--ff-gray-300) !important;
18+
opacity: 0.8;
1719
}
1820
}
1921

20-
2122
.form-select {
2223
color: $dark !important;
2324
}
@@ -50,7 +51,7 @@ $btn-font-weight: bold;
5051
}
5152

5253
.btn-outline-primary {
53-
border-color: var(--ff-primary-200) !important;
54+
border-color: $primary-light !important;
5455
}
5556

5657
.btn-center {
@@ -78,31 +79,14 @@ $btn-font-weight: bold;
7879
}
7980
}
8081

81-
// .upload+.uploadButton {
82-
// height: 2.375rem;
83-
// }
84-
85-
// .uploadButton {
86-
// background-color: var(--ff-primary-500);
87-
// border: none;
88-
// border-radius: 0.1875rem;
89-
// color: $white-color;
90-
// cursor: pointer;
91-
// display: inline-block;
92-
// height: 1.875rem;
93-
// margin-right: 0.9375rem;
94-
// width: auto;
95-
// padding: 0 1.25rem;
96-
// box-sizing: content-box;
97-
// }
9882

9983
.bg-primary {
100-
background-color: var(--ff-primary) !important;
84+
background-color: $primary!important;
10185
}
10286

10387
.table-primary {
10488
--bs-table-color: #fff;
105-
--ff-table-bg: var(--ff-primary) !important;
89+
--ff-table-bg: $primary !important;
10690
}
10791

10892
.btn-wizard-nav-submit,
@@ -125,35 +109,9 @@ $btn-font-weight: bold;
125109
.nav-link:focus-visible,
126110
.form-check-input:focus-visible,
127111
.out-line:focus-visible {
128-
outline: 0.1875rem solid var(--ff-primary-200) !important;
112+
outline: 0.1875rem solid $primary-light !important;
129113
}
130114

131-
// Mixin for button states
132-
// @mixin button-states($bg-color, $border-color, $text-color) {
133-
// background-color: $bg-color !important;
134-
// border-color: $border-color !important;
135-
// color: $text-color !important;
136-
137-
// &:focus {
138-
// outline: none !important;
139-
// }
140-
141-
// &:hover {
142-
// background-color: darken($bg-color, 10%) !important;
143-
// box-shadow: var(--shadow-md) !important;
144-
// }
145-
146-
// &:active {
147-
// background-color: $white-color !important;
148-
// border: 0.0625rem solid $border-color !important;
149-
// }
150-
151-
// &:disabled {
152-
// background-color: var(--ff-gray-300) !important;
153-
// color: $white-color !important;
154-
// border-color: var(--ff-gray-300) !important;
155-
// }
156-
// }
157115

158116
.default-button-styles {
159117
font-size: var(--font-size-sm) !important;
@@ -182,20 +140,20 @@ $btn-font-weight: bold;
182140
}
183141

184142
&:hover {
185-
background-color: var(--primary-btn-hover-bg-color) !important;
143+
opacity: 0.8;
186144
box-shadow: var(--shadow-md) !important;
187145
}
188146

189147
&:active {
190148
background-color: var(--primary-btn-bg-color) !important;
191149
color: var(--primary-btn-font-color) !important;
192-
border: 0.0625rem solid var(--ff-primary) !important;
150+
border: 0.0625rem solid $primary !important;
193151
}
194152

195153
&.btn:disabled {
196-
background-color: var(--ff-gray-300) !important;
154+
background-color: $gray-medium-dark !important;
197155
color: var(--primary-btn-font-color) !important;
198-
border-color: var(--ff-gray-300) !important;
156+
border-color: $gray-medium-dark !important;
199157
}
200158

201159
&+.dropdown-toggle+.dropdown-menu {
@@ -213,7 +171,7 @@ $btn-font-weight: bold;
213171
}
214172

215173
&.btn-text {
216-
color: var(--ff-primary) !important;
174+
color: $primary !important;
217175
}
218176

219177
&.btn-secondary {
@@ -223,7 +181,7 @@ $btn-font-weight: bold;
223181
line-height: var(--text-line-height) !important;
224182

225183
&:hover {
226-
background-color: var(--secondary-btn-hover-bg-color) !important;
184+
opacity: 0.8;
227185
font-weight: var(--font-weight-xl) !important;
228186
}
229187

@@ -233,22 +191,22 @@ $btn-font-weight: bold;
233191
}
234192

235193
&.btn-dark {
236-
background-color: var(--ff-gray-700) !important;
237-
border: 1px solid var(--ff-gray-700) !important;
194+
background-color: $gray-dark !important;
195+
border: 1px solid $gray-dark !important;
238196

239197
&:hover {
240-
background-color: var(--ff-gray-600) !important;
198+
opacity: 0.8;
241199
box-shadow: var(--shadow-md) !important;
242200
}
243201

244202
&:active {
245203
background-color: $white-color !important;
246204
color: var(--default-font-color) !important;
247-
border: 0.0625rem solid var(--ff-gray-700) !important;
205+
border: 0.0625rem solid $gray-dark !important;
248206
}
249207

250208
&+.dropdown-toggle+.dropdown-menu {
251-
border: 0.0625rem solid var(--ff-gray-700) !important;
209+
border: 0.0625rem solid $gray-dark !important;
252210

253211
.dropdown-item {
254212
color: var(--default-font-color) !important;
@@ -322,13 +280,11 @@ $btn-font-weight: bold;
322280
}
323281

324282
.btn-primary.dropdown-toggle {
325-
background-color: var(--ff-base-500) !important;
326-
border-color: var(--ff-base-500) !important;
283+
opacity: 0.8;
327284
}
328285

329286
.btn-dark.dropdown-toggle {
330-
background-color: var(--ff-gray-600) !important;
331-
border-color: var(--ff-gray-600) !important;
287+
opacity: 0.8;
332288
}
333289

334290
.dropdown-menu {
@@ -397,14 +353,14 @@ $btn-font-weight: bold;
397353
border-color: transparent !important;
398354

399355
&:hover {
400-
background-color: $gray-000 !important;
356+
background-color: $gray-medium !important;
401357
}
402358
}
403359

404360
&.active .page-link {
405361
border-color: transparent !important;
406362
color: $black-color !important;
407-
background-color: var(--ff-gray-100) !important;
363+
background-color: $gray-medium !important;
408364
font-weight: $btn-font-weight;
409365
outline: none !important;
410366
}
@@ -428,7 +384,7 @@ $btn-font-weight: bold;
428384

429385
.sort-icon {
430386
font-size: 0.5rem !important;
431-
color: var(--ff-gray-300) !important;
387+
color: $gray-medium-dark !important;
432388
}
433389

434390
.page-link {
@@ -444,7 +400,7 @@ $btn-font-weight: bold;
444400

445401
&:hover,
446402
&:focus {
447-
background-color: $gray-000 !important;
403+
background-color: $gray-medium !important;
448404
outline: none !important;
449405
box-shadow: none !important;
450406
}

0 commit comments

Comments
 (0)