Skip to content

Commit

Permalink
fix(check-picker): fixed the group icon not showing in CheckPicker (#…
Browse files Browse the repository at this point in the history
…1422)

* fix(check-picker): fixed the group icon not showing in CheckPicker

* chore(test): update nodejs-ci.yml
  • Loading branch information
simonguo committed Dec 30, 2020
1 parent a889d80 commit 082a648
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/nodejs-ci.yml
Expand Up @@ -27,6 +27,10 @@ jobs:

steps:
- uses: actions/checkout@v2

- name: Setup kernel, increase watchers
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
Expand Down
3 changes: 2 additions & 1 deletion src/Picker/DropdownMenuGroup.tsx
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import { useClassNames } from '../utils';
import { WithAsProps } from '../@types/common';
import ArrowDown from '@rsuite/icons/legacy/ArrowDown';

export interface DropdownMenuGroupProps extends WithAsProps, React.HTMLAttributes<HTMLDivElement> {}

Expand All @@ -20,7 +21,7 @@ const DropdownMenuGroup = React.forwardRef(
<Component role="group" {...rest} ref={ref} className={classes}>
<div className={prefix`title`} tabIndex={-1}>
<span>{children}</span>
<span aria-hidden className={prefix`caret`} />
<ArrowDown aria-hidden className={prefix`caret`} />
</div>
</Component>
);
Expand Down
6 changes: 1 addition & 5 deletions src/Picker/styles/mixin.less
Expand Up @@ -44,11 +44,7 @@
top: @padding-base-vertical;
right: @padding-base-horizontal;
transition: transform 0.3s linear;

&::before {
content: @picker-select-arrow-down;
font-family: @font-family-icon;
}
padding: 3px;
}
}
}
Expand Down

1 comment on commit 082a648

@vercel
Copy link

@vercel vercel bot commented on 082a648 Dec 30, 2020

Choose a reason for hiding this comment

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

Please sign in to comment.