Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot set picker toolbar width #3580

Closed
MikhailBakaevdev opened this issue Jan 23, 2024 · 4 comments
Closed

Cannot set picker toolbar width #3580

MikhailBakaevdev opened this issue Jan 23, 2024 · 4 comments

Comments

@MikhailBakaevdev
Copy link

MikhailBakaevdev commented Jan 23, 2024

What version of rsuite are you using?

5.50.0

What version of React are you using?

18.2.0

What version of TypeScript are you using (if any)?

4.3.5

What browser are you using?

Chrome

Describe the Bug

Cannot set width for picker toolbar. If i want to set new "OK" button name then button will be like this
Screenshot 2024-01-23 at 15 44 14

also i dont have opportunity to change button color

Expected Behavior

No response

To Reproduce

No response

@simonguo
Copy link
Member

Hi @MikhailBakaevdev when only one calendar is displayed, I suggest placing the shortcut options on the left side of the panel.

image

https://rsuitejs.com/components/date-range-picker/#predefined-date-ranges

@MikhailBakaevdev
Copy link
Author

@simonguo Hi there! thank u for your answer! It helped for me! But how i can change buttons color? now its always blue but i need green color for presets and "Ok" button

@simonguo
Copy link
Member

now its always blue but i need primary color for presets and "Ok" button

Currently, custom "Ok" button is not supported, but you can customize the theme color by customizing Less or CSS variables.

Less: https://rsuitejs.com/guide/customization-less/

@primary-color: #4caf50;

CSS Variables: https://rsuitejs.com/guide/css-variables/

:root {
  // Colors palette
  // See: https://rsuitejs.com/resources/palette/
  --rs-primary-50: #eeffed;
  --rs-primary-100: #c8f0c7;
  --rs-primary-200: #a5e0a4;
  --rs-primary-300: #82cf82;
  --rs-primary-400: #65bf67;
  --rs-primary-500: #4caf50;
  --rs-primary-600: #37ab3c;
  --rs-primary-700: #22a12a;
  --rs-primary-800: #0f9119;
  --rs-primary-900: #007d0c;
}

@MikhailBakaevdev
Copy link
Author

it works thank u @simonguo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants