Skip to content

Commit

Permalink
fix(IconButton): primary icon button with text wrong bg (#2141)
Browse files Browse the repository at this point in the history
  • Loading branch information
SevenOutman committed Nov 19, 2021
1 parent 225821f commit fde0cd4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/pages/components/button/fragments/icon-button.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ const instance = (
</ButtonToolbar>

<ButtonToolbar>
<IconButton icon={<SearchIcon />}>Component</IconButton>
<IconButton appearance="primary" color="green" icon={<SearchIcon />}>
Component
</IconButton>
<IconButton icon={<AddOutlineIcon />}>Add</IconButton>

<IconButton icon={<PlusIcon />}>Add</IconButton>
Expand Down
6 changes: 6 additions & 0 deletions src/Button/styles/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ each(@spectrum, .(@color) {
--rs-btn-link-text: @C700;
--rs-btn-link-hover-text: @C800;
--rs-btn-link-active-text: @C900;
--rs-iconbtn-primary-addon: @C600;
--rs-iconbtn-primary-activated-addon: @C700;
--rs-iconbtn-primary-pressed-addon: @C800;

.dark-mode({
--rs-btn-primary-bg: @C700;
Expand All @@ -198,6 +201,9 @@ each(@spectrum, .(@color) {
--rs-btn-link-text: @C500;
--rs-btn-link-hover-text: @C400;
--rs-btn-link-active-text: @C200;
--rs-iconbtn-primary-addon: @C600;
--rs-iconbtn-primary-activated-addon: @C500;
--rs-iconbtn-primary-pressed-addon: @C400;
});

.high-contrast-mode({
Expand Down

2 comments on commit fde0cd4

@vercel
Copy link

@vercel vercel bot commented on fde0cd4 Nov 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on fde0cd4 Nov 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

rsuite-nextjs – ./docs

rsuite-nextjs-git-main-rsuite.vercel.app
rsuite-nextjs.vercel.app
rsuite-nextjs-rsuite.vercel.app

Please sign in to comment.