mirror of https://gitee.com/answerdev/answer.git
Merge pull request #434 from answerdev/feat/1.1.1/ui
fix(Avatar): Correctly handle the attribute of the user avatar butto…
This commit is contained in:
commit
30e11c7a61
|
@ -41,7 +41,6 @@ const Index: FC<IProps> = ({
|
|||
<>
|
||||
{/* eslint-disable jsx-a11y/no-noninteractive-element-to-interactive-role,jsx-a11y/control-has-associated-label */}
|
||||
<img
|
||||
role="button"
|
||||
src={url || DefaultAvatar}
|
||||
width={size}
|
||||
height={size}
|
||||
|
|
|
@ -65,6 +65,7 @@ const Index: FC<Props> = ({ redDot, userInfo, logOut }) => {
|
|||
variant="success"
|
||||
id="dropdown-basic"
|
||||
as="a"
|
||||
role="button"
|
||||
className="no-toggle pointer">
|
||||
<Avatar
|
||||
size="36px"
|
||||
|
|
Loading…
Reference in New Issue