diff --git a/web/components/enum-settings-option-info.css b/web/components/enum-settings-option-info.css
index cae703a4f..fc1332338 100644
--- a/web/components/enum-settings-option-info.css
+++ b/web/components/enum-settings-option-info.css
@@ -1,14 +1,14 @@
div.optionInfo {
display: flex;
align-items: center;
column-gap: 4px;
}
div.optionInfoInvalid {
text-decoration: line-through;
color: var(--notification-settings-option-invalid-color);
}
-div.optionContainerSelected div.optionInfoInvalid {
+div.optionInfoInvalidSelected {
color: var(--notification-settings-option-invalid-selected-color);
}
diff --git a/web/components/enum-settings-option-info.react.js b/web/components/enum-settings-option-info.react.js
index dbcb88474..1807e7328 100644
--- a/web/components/enum-settings-option-info.react.js
+++ b/web/components/enum-settings-option-info.react.js
@@ -1,37 +1,40 @@
// @flow
import classnames from 'classnames';
import * as React from 'react';
import SWMansionIcon from '../SWMansionIcon.react';
import css from './enum-settings-option-info.css';
type Props = {
+ +optionSelected: boolean,
+valid: boolean,
+children: React.Node,
};
function EnumSettingsOptionInfo(props: Props): React.Node {
- const { valid, children } = props;
+ const { valid, children, optionSelected } = props;
const optionInfoClasses = React.useMemo(
() =>
- classnames(css.optionInfo, {
+ classnames({
+ [css.optionInfo]: true,
[css.optionInfoInvalid]: !valid,
+ [css.optionInfoInvalidSelected]: !valid && optionSelected,
}),
- [valid],
+ [valid, optionSelected],
);
const icon = React.useMemo(
() =>