aboutsummaryrefslogtreecommitdiffstats
path: root/src/commonStyles.tsx
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2021-01-16 22:31:50 +0300
committerGravatar Hassan Abouelela <[email protected]>2021-01-16 22:35:16 +0300
commitd7c20ba6e8f0675ad2fcd4fb41419de005ae3979 (patch)
tree235c151e941623acd14b86b2cb7375742ef745c8 /src/commonStyles.tsx
parentMinor Style Adjustments (diff)
Rewrites Components For Accessibility
Makes major changes to the structuring of checkboxes, and ranges to be more accessible to all users. Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'src/commonStyles.tsx')
-rw-r--r--src/commonStyles.tsx23
1 files changed, 22 insertions, 1 deletions
diff --git a/src/commonStyles.tsx b/src/commonStyles.tsx
index 5053846..71bbd13 100644
--- a/src/commonStyles.tsx
+++ b/src/commonStyles.tsx
@@ -14,6 +14,24 @@ const unselectable = css`
user-select: none;
`;
+const hiddenInput = css`
+ position: absolute;
+ opacity: 0;
+ height: 0;
+ width: 0;
+`;
+
+const multiSelectInput = css`
+ display: inline-block;
+ position: relative;
+
+ margin: 1rem 0.5rem 0 0;
+ border: whitesmoke 0.2rem solid;
+
+ background-color: whitesmoke;
+ transition: background-color 300ms;
+`;
+
const textInputs = css`
display: inline-block;
width: min(20rem, 90%);
@@ -32,8 +50,11 @@ const textInputs = css`
border-radius: 8px;
`;
+
export {
selectable,
unselectable,
- textInputs
+ hiddenInput,
+ multiSelectInput,
+ textInputs,
};