mirror of https://gitee.com/answerdev/answer.git
fix(Avatar): Correctly handle the attribute of the user avatar button's tag.
This commit is contained in:
parent
3ea5575136
commit
f6f32db7ec
|
@ -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