feat: Add cursor style user preference (#4199)

* feat: Add cursor style user preference

* Remove headings for now
This commit is contained in:
Tom Moor
2022-10-01 13:39:45 +02:00
committed by GitHub
parent ee8c47eb3b
commit b9bf2e58cb
37 changed files with 68 additions and 38 deletions

View File

@@ -27,6 +27,7 @@ const DocumentLink = styled(Link)`
min-width: 100%;
overflow: hidden;
position: relative;
cursor: var(--pointer);
&:${hover},
&:active,

View File

@@ -89,6 +89,7 @@ const RecentSearch = styled(Link)`
display: flex;
justify-content: space-between;
color: ${(props) => props.theme.textSecondary};
cursor: var(--pointer);
padding: 1px 4px;
border-radius: 4px;

View File

@@ -83,6 +83,20 @@ function Preferences() {
ariaLabel={t("Language")}
/>
</SettingRow>
<SettingRow
name="useCursorPointer"
label={t("Use pointer cursor")}
description={t(
"Show a hand cursor when hovering over interactive elements."
)}
>
<Switch
id="useCursorPointer"
name="useCursorPointer"
checked={user.preferences?.useCursorPointer !== false}
onChange={handlePreferenceChange}
/>
</SettingRow>
<SettingRow
border={false}
name="rememberLastPath"

View File

@@ -116,7 +116,7 @@ const DropzoneContainer = styled.div<{
padding: 52px;
text-align: center;
font-size: 15px;
cursor: pointer;
cursor: var(--pointer);
opacity: ${(props) => (props.$disabled ? 0.5 : 1)};
&:hover {

View File

@@ -49,7 +49,7 @@ const ImageBox = styled(Flex)`
bottom: 0;
left: 0;
opacity: 0;
cursor: pointer;
cursor: var(--pointer);
transition: all 250ms;
}

View File

@@ -158,7 +158,7 @@ const RangeInput = styled.input`
width: 300px;
margin-bottom: 30px;
height: 4px;
cursor: pointer;
cursor: var(--pointer);
color: inherit;
border-radius: 99999px;
background-color: #dee1e3;
@@ -170,7 +170,7 @@ const RangeInput = styled.input`
width: 16px;
border-radius: 50%;
background: ${(props) => props.theme.text};
cursor: pointer;
cursor: var(--pointer);
}
&:focus {

View File

@@ -43,7 +43,7 @@ const UserListItem = ({ user, showMenu }: Props) => {
const Title = styled.span`
&:hover {
text-decoration: underline;
cursor: pointer;
cursor: var(--pointer);
}
`;