Skip to content

Commit fc4fa53

Browse files
committed
chore: fixed panel bg color using tertiary bg color
1 parent 4fef25d commit fc4fa53

File tree

7 files changed

+7
-23
lines changed

7 files changed

+7
-23
lines changed

ts/components/buttons/PanelButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const StyledRoundedPanelButtonGroup = styled.div`
2525
flex-direction: column;
2626
justify-content: center;
2727
overflow: hidden;
28-
background: var(--right-panel-item-background-color);
28+
background: var(--background-tertiary-color);
2929
border-radius: 16px;
3030
padding: 0 var(--margins-lg) var(--margins-xs);
3131
margin: 0 var(--margins-lg);

ts/components/buttons/PanelRadioButton.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export const PanelRadioButton = (props: PanelRadioButtonProps) => {
5757
label=""
5858
disabled={disabled}
5959
inputDataTestId={radioInputDataTestId}
60+
style={{ paddingRight: 'var(--margins-xs)' }}
6061
/>
6162
</StyledCheckContainer>
6263
</StyledContent>

ts/themes/classicDark.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const classicDark: ThemeColorVariables = {
99

1010
'--background-primary-color': THEMES.CLASSIC_DARK.COLOR1,
1111
'--background-secondary-color': THEMES.CLASSIC_DARK.COLOR0,
12+
'--background-tertiary-color': THEMES.CLASSIC_DARK.COLOR2,
1213

1314
'--text-primary-color': THEMES.CLASSIC_DARK.COLOR6,
1415
'--text-secondary-color': THEMES.CLASSIC_DARK.COLOR5,
@@ -126,10 +127,6 @@ export const classicDark: ThemeColorVariables = {
126127
'--toast-color-strip-color': 'var(--primary-color)',
127128
'--toast-progress-color': `rgba(${hexColorToRGB(COLORS.BLACK)}, 0.1)`,
128129

129-
'--right-panel-item-background-color': THEMES.CLASSIC_DARK.COLOR2,
130-
'--right-panel-item-background-hover-color': THEMES.CLASSIC_DARK.COLOR3,
131-
'--right-panel-item-text-color': 'var(--text-primary-color)',
132-
133130
'--session-logo-text-light-filter': 'none',
134131
'--session-logo-text-dark-filter': 'none',
135132
'--session-logo-text-current-filter': 'var(--session-logo-text-light-filter)',

ts/themes/classicLight.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const classicLight: ThemeColorVariables = {
99

1010
'--background-primary-color': THEMES.CLASSIC_LIGHT.COLOR6,
1111
'--background-secondary-color': THEMES.CLASSIC_LIGHT.COLOR5,
12+
'--background-tertiary-color': THEMES.CLASSIC_LIGHT.COLOR4,
1213

1314
'--text-primary-color': THEMES.CLASSIC_LIGHT.COLOR0,
1415
'--text-secondary-color': THEMES.CLASSIC_LIGHT.COLOR1,
@@ -126,10 +127,6 @@ export const classicLight: ThemeColorVariables = {
126127
'--toast-color-strip-color': 'var(--primary-color)',
127128
'--toast-progress-color': `rgba(${hexColorToRGB(COLORS.BLACK)}, 0.1)`,
128129

129-
'--right-panel-item-background-color': 'var(--background-secondary-color)',
130-
'--right-panel-item-background-hover-color': THEMES.CLASSIC_LIGHT.COLOR4,
131-
'--right-panel-item-text-color': 'var(--text-primary-color)',
132-
133130
'--session-logo-text-light-filter': 'brightness(0) saturate(100%)',
134131
'--session-logo-text-dark-filter': 'none',
135132
'--session-logo-text-current-filter': 'var(--session-logo-text-light-filter)',

ts/themes/oceanDark.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const oceanDark: ThemeColorVariables = {
99

1010
'--background-primary-color': THEMES.OCEAN_DARK.COLOR1,
1111
'--background-secondary-color': THEMES.OCEAN_DARK.COLOR2,
12+
'--background-tertiary-color': THEMES.OCEAN_DARK.COLOR0,
1213

1314
'--text-primary-color': THEMES.OCEAN_DARK.COLOR7!,
1415
'--text-secondary-color': THEMES.OCEAN_DARK.COLOR5,
@@ -126,10 +127,6 @@ export const oceanDark: ThemeColorVariables = {
126127
'--toast-color-strip-color': 'var(--primary-color)',
127128
'--toast-progress-color': `rgba(${hexColorToRGB(COLORS.BLACK)}, 0.1)`,
128129

129-
'--right-panel-item-background-color': 'var(--background-secondary-color)',
130-
'--right-panel-item-background-hover-color': THEMES.OCEAN_DARK.COLOR4,
131-
'--right-panel-item-text-color': 'var(--text-primary-color)',
132-
133130
'--session-logo-text-light-filter': 'none',
134131
'--session-logo-text-dark-filter': 'none',
135132
'--session-logo-text-current-filter': 'var(--session-logo-text-light-filter)',

ts/themes/oceanLight.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const oceanLight: ThemeColorVariables = {
99

1010
'--background-primary-color': THEMES.OCEAN_LIGHT.COLOR7!,
1111
'--background-secondary-color': THEMES.OCEAN_LIGHT.COLOR6,
12+
'--background-tertiary-color': THEMES.OCEAN_LIGHT.COLOR5,
1213

1314
'--text-primary-color': THEMES.OCEAN_LIGHT.COLOR1,
1415
'--text-secondary-color': THEMES.OCEAN_LIGHT.COLOR2,
@@ -126,10 +127,6 @@ export const oceanLight: ThemeColorVariables = {
126127
'--toast-color-strip-color': 'var(--primary-color)',
127128
'--toast-progress-color': `rgba(${hexColorToRGB(COLORS.BLACK)}, 0.1)`,
128129

129-
'--right-panel-item-background-color': 'var(--background-secondary-color)',
130-
'--right-panel-item-background-hover-color': THEMES.OCEAN_LIGHT.COLOR4,
131-
'--right-panel-item-text-color': 'var(--text-primary-color)',
132-
133130
'--session-logo-text-light-filter': 'brightness(0) saturate(100%)',
134131
'--session-logo-text-dark-filter': 'none',
135132
'--session-logo-text-current-filter': 'var(--session-logo-text-light-filter)',

ts/themes/variableColors.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export type ThemeColorVariables = {
77
/* Backgrounds */
88
'--background-primary-color': string;
99
'--background-secondary-color': string;
10+
'--background-tertiary-color': string;
1011

1112
/* Text */
1213
'--text-primary-color': string;
@@ -157,12 +158,6 @@ export type ThemeColorVariables = {
157158
'--toast-color-strip-color': string;
158159
'--toast-progress-color': string;
159160

160-
/* Right Panel Items */
161-
/* Also used for Session Dropdown */
162-
'--right-panel-item-background-color': string;
163-
'--right-panel-item-background-hover-color': string;
164-
'--right-panel-item-text-color': string;
165-
166161
/* Session Text Logo */
167162
/* Loads SVG as IMG and uses a filter to change color */
168163
'--session-logo-text-light-filter': string;

0 commit comments

Comments
 (0)