mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 16:05:44 +01:00
High contrast mode findings (#1892)
Fixes most of the flaws in high contrast mode.
This commit is contained in:
@@ -45,7 +45,7 @@ const FullSizedModal = styled(Modal)`
|
||||
|
||||
const FullscreenModal: FC<Props> = ({ title, closeFunction, body, active, closeButtonLabel }) => {
|
||||
const [t] = useTranslation("repos");
|
||||
const footer = <Button label={closeButtonLabel || t("diff.fullscreen.close")} action={closeFunction} color="grey" />;
|
||||
const footer = <Button label={closeButtonLabel || t("diff.fullscreen.close")} action={closeFunction} color="secondary" />;
|
||||
|
||||
return <FullSizedModal title={title} closeFunction={closeFunction} body={body} footer={footer} active={active} />;
|
||||
};
|
||||
|
||||
@@ -45,7 +45,7 @@ type Props = {
|
||||
};
|
||||
|
||||
const SizedModal = styled.div<{ size?: ModalSize }>`
|
||||
width: ${(props) => (props.size ? `${modalSizes[props.size]}%` : "640px")};
|
||||
width: ${props => (props.size ? `${modalSizes[props.size]}%` : "640px")};
|
||||
`;
|
||||
|
||||
export const Modal: FC<Props> = ({
|
||||
@@ -55,9 +55,9 @@ export const Modal: FC<Props> = ({
|
||||
footer,
|
||||
active,
|
||||
className,
|
||||
headColor = "light",
|
||||
headTextColor = "black",
|
||||
size,
|
||||
headColor = "secondary-less",
|
||||
headTextColor = "secondary-most",
|
||||
size
|
||||
}) => {
|
||||
const portalRootElement = usePortalRootElement("modalsRoot");
|
||||
const initialFocusRef = useRef(null);
|
||||
@@ -65,7 +65,7 @@ export const Modal: FC<Props> = ({
|
||||
includeContainer: true,
|
||||
initialFocus: initialFocusRef.current,
|
||||
returnFocus: true,
|
||||
updateNodes: false,
|
||||
updateNodes: false
|
||||
});
|
||||
|
||||
if (!portalRootElement) {
|
||||
|
||||
Reference in New Issue
Block a user