Remove PostCard focus outline
This commit is contained in:
@@ -151,6 +151,18 @@ const useStyles = makeStyles({
|
|||||||
justifyItems: 'center',
|
justifyItems: 'center',
|
||||||
gap: '0 8px',
|
gap: '0 8px',
|
||||||
},
|
},
|
||||||
|
actionButton: {
|
||||||
|
'&:focus': {
|
||||||
|
outlineStyle: 'none',
|
||||||
|
},
|
||||||
|
'&:focus-visible': {
|
||||||
|
outlineStyle: 'none',
|
||||||
|
},
|
||||||
|
'&::after': {
|
||||||
|
outline: 'none',
|
||||||
|
boxShadow: 'none',
|
||||||
|
},
|
||||||
|
},
|
||||||
modalOverlay: {
|
modalOverlay: {
|
||||||
position: 'fixed',
|
position: 'fixed',
|
||||||
top: 0,
|
top: 0,
|
||||||
@@ -229,6 +241,7 @@ const PostCard = ({
|
|||||||
<Button
|
<Button
|
||||||
icon={<ArrowUp24Regular />}
|
icon={<ArrowUp24Regular />}
|
||||||
appearance="transparent"
|
appearance="transparent"
|
||||||
|
className={styles.actionButton}
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
if (hasVoted) {
|
if (hasVoted) {
|
||||||
dispatchToast(
|
dispatchToast(
|
||||||
@@ -259,6 +272,7 @@ const PostCard = ({
|
|||||||
<Button
|
<Button
|
||||||
icon={<ArrowDown24Regular />}
|
icon={<ArrowDown24Regular />}
|
||||||
appearance="transparent"
|
appearance="transparent"
|
||||||
|
className={styles.actionButton}
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
if (hasVoted) {
|
if (hasVoted) {
|
||||||
dispatchToast(
|
dispatchToast(
|
||||||
@@ -289,11 +303,13 @@ const PostCard = ({
|
|||||||
<Button
|
<Button
|
||||||
icon={<Comment24Regular />}
|
icon={<Comment24Regular />}
|
||||||
appearance="transparent"
|
appearance="transparent"
|
||||||
|
className={styles.actionButton}
|
||||||
onClick={() => setShowComments(!showComments)}
|
onClick={() => setShowComments(!showComments)}
|
||||||
/>
|
/>
|
||||||
<Button
|
<Button
|
||||||
icon={<Warning24Regular />}
|
icon={<Warning24Regular />}
|
||||||
appearance="transparent"
|
appearance="transparent"
|
||||||
|
className={styles.actionButton}
|
||||||
onClick={() => setShowReportModal(true)}
|
onClick={() => setShowReportModal(true)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user