Skip to content

Commit

Permalink
feat(Clockface 4): Progressbar (#900)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChitlangeSahas committed Nov 8, 2022
1 parent 5561802 commit 782ca5a
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Components/ProgressBar/ProgressBar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
height: 12px;
box-sizing: border-box;
padding: $cf-space-3xs 0;
background-color: $cf-grey-5;
background-color: $cf-grey-1;
display: inline-flex;
position: relative;
}
Expand All @@ -25,7 +25,7 @@
.cf-progress-bar--text {
margin-top: $cf-space-2xs;
width: 100%;
color: $cf-grey-55;
color: #88889b;
display: inline-flex;
justify-content: space-between;
font-size: $cf-text-base-0;
Expand Down
2 changes: 1 addition & 1 deletion src/Components/ProgressBar/ProgressBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const ProgressBar = forwardRef<ProgressBarRef, ProgressBarProps>(
max = 100,
label,
className,
color = InfluxColors.White,
color = InfluxColors.Lavender,
barGradient,
valueText,
maxText,
Expand Down
16 changes: 16 additions & 0 deletions src/Constants/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,22 @@ export const influxGradients = {
start: InfluxColors.Pool,
stop: InfluxColors.Pulsar,
},

// New gradients
LightMode: {
start: '#D30971',
stop: '#9B2AFF',
},

DarkMode: {
start: '#F863B0',
stop: '#BC61E6',
},

TurquoiseChartreuse: {
start: '#5EE4E4',
stop: '#D6F622',
},
}

export const dropdownScrollColors = {
Expand Down
3 changes: 3 additions & 0 deletions src/Types/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ export enum Gradients {
DangerLight = 'DangerLight',
Danger = 'Danger',
DangerDark = 'DangerDark',
DarkMode = 'DarkMode',
LightMode = 'LightMode',
TurquoiseChartreuse = 'TurquoiseChartreuse',
}

export enum DropdownMenuTheme {
Expand Down

0 comments on commit 782ca5a

Please sign in to comment.