Skip to content

Commit a9fed82

Browse files
committed
fix: icon sizes and contrast.
1 parent 43c573c commit a9fed82

File tree

4 files changed

+22
-4
lines changed

4 files changed

+22
-4
lines changed

client/components/edit/ObjectSummary.module.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
.infobox button {
1414
min-width: unset;
1515
padding-block: 0.5em 0.4em;
16-
font-size: 10pt;
1716

1817
&:not(:hover,:focus) {
1918
background-color: white;
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
button.datastreamControlButton {
2+
font-size: 16pt;
3+
transition: none;
4+
5+
&:hover,
6+
&:focus {
7+
color: white;
8+
background-color: black;
9+
}
10+
}

client/components/edit/datastream/DatastreamControlButton.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React, { useState } from "react";
2+
import styles from "./DatastreamControlButton.module.css";
23
import LoadingButton from "@mui/lab/LoadingButton";
34
import Tooltip from "@mui/material/Tooltip";
45
import DataObject from "@mui/icons-material/DataObject";
@@ -55,7 +56,7 @@ const DatastreamControlButton = ({
5556
<Tooltip title={modalState}>
5657
<span>
5758
<LoadingButton
58-
className="datastreamControlButton"
59+
className={styles.datastreamControlButton}
5960
loading={isLoading}
6061
aria-label={modalState}
6162
disabled={modalState !== "Upload" && disabled}

client/styles/global.css

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@
1111
}
1212

1313
@layer global {
14+
a {
15+
&:hover,
16+
&:focus {
17+
color: black;
18+
}
19+
}
20+
1421
h1 {
1522
margin-block-start: 0;
1623
}
@@ -93,6 +100,7 @@
93100
display: inline-block;
94101
padding-inline: 1rem;
95102
padding-block: 0.5rem;
103+
font-size: 1em;
96104
color: var(--button-text);
97105
line-height: normal;
98106
text-decoration: none;
@@ -120,12 +128,12 @@
120128
}
121129

122130
/* MUI: better default icon size */
123-
svg.css-i4bv87-MuiSvgIcon-root {
131+
svg[class*="MuiSvgIcon-root"] {
124132
font-size: 1em;
125133
vertical-align: top;
126134
}
127135

128136
/* MUI: modal */
129-
.css-tlc64q-MuiPaper-root-MuiDialog-paper {
137+
[class*="MuiPaper-root"][class*="MuiDialog-paper"] {
130138
background-color: Canvas;
131139
}

0 commit comments

Comments
 (0)