From 082a648b406fa2025fc5a0940c8b72010a559bc1 Mon Sep 17 00:00:00 2001 From: Simon Guo Date: Wed, 30 Dec 2020 15:37:56 +0800 Subject: [PATCH] fix(check-picker): fixed the group icon not showing in CheckPicker (#1422) * fix(check-picker): fixed the group icon not showing in CheckPicker * chore(test): update nodejs-ci.yml --- .github/workflows/nodejs-ci.yml | 4 ++++ src/Picker/DropdownMenuGroup.tsx | 3 ++- src/Picker/styles/mixin.less | 6 +----- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/nodejs-ci.yml b/.github/workflows/nodejs-ci.yml index b2a29ff42..0a495be7c 100644 --- a/.github/workflows/nodejs-ci.yml +++ b/.github/workflows/nodejs-ci.yml @@ -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: diff --git a/src/Picker/DropdownMenuGroup.tsx b/src/Picker/DropdownMenuGroup.tsx index cb3e93c60..780559294 100644 --- a/src/Picker/DropdownMenuGroup.tsx +++ b/src/Picker/DropdownMenuGroup.tsx @@ -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 {} @@ -20,7 +21,7 @@ const DropdownMenuGroup = React.forwardRef(
{children} - +
); diff --git a/src/Picker/styles/mixin.less b/src/Picker/styles/mixin.less index 45bed0ee0..6b7fcef5e 100644 --- a/src/Picker/styles/mixin.less +++ b/src/Picker/styles/mixin.less @@ -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; } } }