Skip to content

Commit de1d9be

Browse files
“mhmaidi789”JIB3377MaxWeisenmhmaidi789dieunity
authored andcommitted
Improveedstylization of Accessibility Lens. Reduced checkbox sizes. Added border
Co-authored-by: Justin Baik <bij3377@gmail.com> Co-authored-by: Max Weisenberger <germanbluemax@gmail.com> Co-authored-by: Mo Hmaidi <mhmaidi789@gmail.com> Co-authored-by: Dieu Huynh <dieuhhuynh@gmail.com>
1 parent 28f3ac7 commit de1d9be

File tree

2 files changed

+56
-28
lines changed

2 files changed

+56
-28
lines changed

src/components/BrowserView/BrowserView.jsx

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -86,43 +86,37 @@ const BrowserView = () => {
8686
}
8787
};
8888

89-
const useStyles = makeStyles(() => ({
90-
FormControlLabel: {
91-
// fontSize doesn't work, but color does work...
92-
fontSize: '1px',
93-
// color: 'white',
94-
// ,
95-
},
96-
}));
89+
// const useStyles = makeStyles(() => ({
90+
// FormControlLabel: {
91+
// // fontSize doesn't work, but color does work...
92+
// fontSize: '1px',
93+
// color: 'red',
94+
// // ,
95+
// },
96+
// }));
9797

98-
const classes = useStyles();
98+
// const classes = useStyles();
9999

100100
return (
101-
<div id="Accessibility Lens">
102-
<div className={styles.accessLensContainer}>
101+
<div id={styles.browswerComponentTopLevelDiv}>
102+
<div id={styles.accessLensContainer}>
103103
<div id={styles.accessLensLabel}>
104104
Accessibility Lens
105105
</div>
106106
{/* trying to put some sort of flex style or centered style here to center the 3 check boxes...but no avail */}
107107
<div
108-
id="Check Boxes"
109-
style={{
110-
display: 'flex',
111-
alignItems: 'center',
112-
justifyContent: 'center',
113-
// fontSize: 22,
114-
}}
108+
id={styles.accessLensCheckBoxes}
115109
>
116110
<FormControlLabel
117111
// style={{fontSize:2}}
118-
id="Disable Mouse Checkbox"
119-
control={(
120-
<Checkbox
121-
// style={{fontSize:2}}
112+
id="Disable Mouse Checkbox"
113+
control={(
114+
<Checkbox
122115
value="disable mouse clicks"
123116
checked={checkedBoxes.checkedMouse}
124117
onChange={handleChangeCheckBox}
125118
name="checkedMouse"
119+
size='small'
126120
/>
127121
)}
128122
label="Disable Mouse Clicks"
@@ -135,6 +129,7 @@ const BrowserView = () => {
135129
checked={checkedBoxes.checkedGrayscale}
136130
onChange={handleChangeCheckBox}
137131
name="checkedGrayscale"
132+
size='small'
138133
/>
139134
)}
140135
label="Grayscale"
@@ -147,6 +142,7 @@ const BrowserView = () => {
147142
checked={checkedBoxes.checkedContrast}
148143
onChange={handleChangeCheckBox}
149144
name="checkedContrast"
145+
size='small'
150146
/>
151147
)}
152148
label="Low Contrast"
@@ -159,6 +155,7 @@ const BrowserView = () => {
159155
checked={checkedBoxes.muted}
160156
onChange={handleChangeCheckBox}
161157
name="muted"
158+
size='small'
162159
/>
163160
)}
164161
label="Mute"

src/components/BrowserView/BrowserView.module.scss

Lines changed: 37 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
@import '../../assets/stylesheets/fonts.scss';
33

44
#browserView {
5-
height: 100vh;
5+
display: flex;
6+
justify-content: center;
7+
height: 97vh;
68
width: auto;
79
}
810

@@ -17,14 +19,38 @@
1719
text-indent: 10px;
1820
}
1921

20-
.accessLensContainer{
21-
background-color: $mint2;
22-
height: 55px;
22+
#browswerComponentTopLevelDiv{
23+
display: flex;
24+
flex: 1;
25+
flex-direction: column;
2326
}
2427

25-
.accessLensCheckBoxes{
26-
display: flex;
28+
#accessLensContainer{
2729
// background-color: $mint2;
30+
display: flex;
31+
flex-direction: column;
32+
height: 8vh;
33+
min-width: 100px;
34+
// border: $mint;
35+
// border-width: .1em;
36+
// border-radius: 5px;
37+
// border-style: solid;
38+
overflow-x: scroll;
39+
overflow-y: hidden;
40+
white-space: nowrap;
41+
justify-content: center;
42+
}
43+
44+
#accessLensCheckBoxes{
45+
display: flex;
46+
justify-content: center;
47+
align-items: center;
48+
background-color: $mint2;
49+
border: $mint2;
50+
border-width: .1em;
51+
border-bottom-left-radius: 5px;
52+
border-bottom-right-radius: 5px;
53+
border-style: solid;
2854
}
2955

3056
#accessLensLabel {
@@ -33,6 +59,11 @@
3359
background-color: $mint;
3460
color: white;
3561
font-size: 18px;
62+
height: 2vh;
63+
border: $mint;
64+
border-top-left-radius: 5px;
65+
border-top-right-radius: 5px;
66+
border-style: solid;
3667
}
3768

3869
// button {

0 commit comments

Comments
 (0)