mirror of
https://github.com/strapi/strapi.git
synced 2025-12-05 19:42:05 +00:00
Fix: Add border to stage color badges
This commit is contained in:
parent
444d3200c7
commit
2145a3c1f5
@ -6,7 +6,7 @@ import { pxToRem } from '@strapi/helper-plugin';
|
|||||||
export function ReviewWorkflowsStageEE({ color, name }) {
|
export function ReviewWorkflowsStageEE({ color, name }) {
|
||||||
return (
|
return (
|
||||||
<Flex alignItems="center" gap={2} maxWidth={pxToRem(300)}>
|
<Flex alignItems="center" gap={2} maxWidth={pxToRem(300)}>
|
||||||
<Box height={2} background={color} hasRadius shrink={0} width={2} />
|
<Box height={2} background={color} borderColor="neutral150" hasRadius shrink={0} width={2} />
|
||||||
|
|
||||||
<Typography fontWeight="regular" textColor="neutral700" ellipsis>
|
<Typography fontWeight="regular" textColor="neutral700" ellipsis>
|
||||||
{name}
|
{name}
|
||||||
|
|||||||
@ -9,7 +9,14 @@ export function OptionColor({ children, ...props }) {
|
|||||||
return (
|
return (
|
||||||
<components.Option {...props}>
|
<components.Option {...props}>
|
||||||
<Flex alignItems="center" gap={2}>
|
<Flex alignItems="center" gap={2}>
|
||||||
<Flex height={2} background={color} hasRadius shrink={0} width={2} />
|
<Flex
|
||||||
|
height={2}
|
||||||
|
background={color}
|
||||||
|
borderColor="neutral150"
|
||||||
|
hasRadius
|
||||||
|
shrink={0}
|
||||||
|
width={2}
|
||||||
|
/>
|
||||||
|
|
||||||
<Typography textColor="neutral800" ellipsis>
|
<Typography textColor="neutral800" ellipsis>
|
||||||
{children}
|
{children}
|
||||||
|
|||||||
@ -9,7 +9,14 @@ export function SingleValueColor({ children, ...props }) {
|
|||||||
return (
|
return (
|
||||||
<components.SingleValue {...props}>
|
<components.SingleValue {...props}>
|
||||||
<Flex alignItems="center" gap={2}>
|
<Flex alignItems="center" gap={2}>
|
||||||
<Flex height={2} background={color} hasRadius shrink={0} width={2} />
|
<Flex
|
||||||
|
height={2}
|
||||||
|
background={color}
|
||||||
|
borderColor="neutral150"
|
||||||
|
hasRadius
|
||||||
|
shrink={0}
|
||||||
|
width={2}
|
||||||
|
/>
|
||||||
|
|
||||||
<Typography textColor="neutral800" ellipsis>
|
<Typography textColor="neutral800" ellipsis>
|
||||||
{children}
|
{children}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user