Web: Files: fixed badge theme

This commit is contained in:
Nikita Gopienko 2023-08-17 17:02:21 +03:00
parent 52bf38ba84
commit 9be980fdb9
4 changed files with 14 additions and 4 deletions

View File

@ -169,7 +169,6 @@ const LinkRow = (props) => {
return (
<StyledLinkRow {...rest} isExpired={isExpired}>
<Avatar
className="avatar"
size="min"
source={EyeReactSvgUrl}
roleIcon={expiryDate ? <ClockReactSvg /> : null}

View File

@ -90,12 +90,13 @@ const StyledLinkRow = styled.div`
}
.avatar_role-wrapper {
${({ isExpired }) =>
isExpired &&
${({ isExpired, theme }) =>
css`
svg {
path {
fill: #f98e86;
fill: ${isExpired
? theme.infoPanel.links.iconErrorColor
: theme.infoPanel.links.iconColor};
}
}
`}

View File

@ -2013,6 +2013,11 @@ const Base = {
closeButtonSize: "17px",
closeButtonBg: "transparent",
links: {
iconColor: "#3B72A7",
iconErrorColor: "rgba(242, 28, 14, 0.5)", //"#F21C0E",
},
members: {
iconColor: "#A3A9AE",
iconHoverColor: "#657077",

View File

@ -2009,6 +2009,11 @@ const Dark = {
closeButtonSize: "12px",
closeButtonBg: "#a2a2a2",
links: {
iconColor: "#858585",
iconErrorColor: "rgba(242, 28, 14, 0.5)", //"#F21C0E",
},
members: {
iconColor: "#A3A9AE",
iconHoverColor: "#ffffff",