移除按钮中选中的圆圈。

huangapple go评论64阅读模式
英文:

Remove circle selected in button

问题

I have to do this task. I need to remove the shadow/circle when selecting a button. The shadow is when the cursor is on it.

You have the image here

移除按钮中选中的圆圈。

The code that I have is this:

<NavButton disabled={loading || rowsLength < size} onClick={handleNext}>
  <AngleRightIcon size={24} />
</NavButton>

Thanks for your answers!

英文:

I have to do this task. I need to remove the shadow/circle when selecting a button. The shadow is when the cursor is on it.

You have the image here

移除按钮中选中的圆圈。

The code that I have is this:

&lt;NavButton disabled={loading || rowsLength &lt; size} onClick={handleNext}&gt;
  &lt;AngleRightIcon size={24} /&gt;
&lt;/NavButton&gt;

Thanks for your answers!

答案1

得分: 0

根据您在评论中提到的 CSS,使用以下方式更新您的样式:

const NavButton = styled(IconButton)({
  width: 64,
  height: 64,
  '&:active': {
    background: 'transparent',
  },
  '&:hover': {
    background: 'transparent',
  },
});
英文:

As you mentioned css in comment, update your style with this:

const NavButton = styled(IconButton)({
  width: 64,
  height: 64,
  &#39;&amp;:active&#39;: {
    background: &#39;transparent&#39;,
  },
  &#39;&amp;:hover&#39;: {
    background: &#39;transparent&#39;,
  },
});

huangapple
  • 本文由 发表于 2023年5月10日 16:53:33
  • 转载请务必保留本文链接:https://go.coder-hub.com/76216556.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定