mirror of
https://github.com/strapi/strapi.git
synced 2025-09-30 19:05:53 +00:00
Merge remote-tracking branch 'origin/feature/review-workflow-1-normalize-color' into feature/review-workflow-1-normalize-color
This commit is contained in:
commit
94524dcbd1
@ -172,7 +172,9 @@ export function Stage({
|
|||||||
),
|
),
|
||||||
color: hex,
|
color: hex,
|
||||||
}));
|
}));
|
||||||
const colorValue = colorOptions.find(({ value }) => value === colorField.value.toLowerCase());
|
// TODO: the .toUpperCase() conversion can be removed once the hex code is normalized in
|
||||||
|
// the admin API
|
||||||
|
const colorValue = colorOptions.find(({ value }) => value === colorField.value.toUpperCase());
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box ref={composedRef}>
|
<Box ref={composedRef}>
|
||||||
|
@ -27,7 +27,7 @@ export function getStageColorByHex(hex) {
|
|||||||
|
|
||||||
export function getAvailableStageColors() {
|
export function getAvailableStageColors() {
|
||||||
return Object.entries(STAGE_COLORS).map(([themeColorName, name]) => ({
|
return Object.entries(STAGE_COLORS).map(([themeColorName, name]) => ({
|
||||||
hex: lightTheme.colors[themeColorName].toLowerCase(),
|
hex: lightTheme.colors[themeColorName].toUpperCase(),
|
||||||
name,
|
name,
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,7 @@ describe('Settings | Review Workflows | colors', () => {
|
|||||||
name: expect.any(String),
|
name: expect.any(String),
|
||||||
});
|
});
|
||||||
|
|
||||||
expect(color.hex).toBe(color.hex.toLowerCase());
|
expect(color.hex).toBe(color.hex.toUpperCase());
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user