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

Styling arrow circle at the bottom right of the screen #1850

Closed
clarencedesmarais opened this issue Jan 4, 2022 · 5 comments · Fixed by #1891
Closed

Styling arrow circle at the bottom right of the screen #1850

clarencedesmarais opened this issue Jan 4, 2022 · 5 comments · Fixed by #1891
Assignees

Comments

@clarencedesmarais
Copy link

clarencedesmarais commented Jan 4, 2022

Describe the bug
I am not exactly sure how to change the background color of the element that appears at the bottom right of the screen when screen is minimized. Here's a capture of what this looks like now :

image

I would like the background there to be black for example.

I've already customized the react component to adjust styling, but for this specific html element, I am at a loss.

I've tried looking at : https://github.com/Redocly/redoc#redoc-theme-object

And tried adjusting the following:

  • menu: background-color
  • menu: arrow : background-color
    amongst other things.

Expected behavior
Clear documentation on how to use the theme object for styling this html element.

Minimal reproducible OpenAPI snippet(if possible)

  • using react 17.0.2
  • using redoc 200.rc.57
  • building with webpack 5.62.1
  • using the react component by passing a theme in the options such as :
<RedocStandalone
  specUrl={...}
  options={{ theme: { ...redocTheme, ...}
@Oprysk
Copy link
Contributor

Oprysk commented Jan 5, 2022

Hi @clarencedesmarais

Currently, button arrows accept the theme.colors.primary.main property, and the background color is not configurable yet

@clarencedesmarais
Copy link
Author

clarencedesmarais commented Jan 13, 2022

Is there any way to work around this ?

Maybe an option to hide the circle or something like that ?

cc: @Oprysk

@AlexVarchuk
Copy link
Collaborator

@clarencedesmarais Hi! We add class to this button. I hope it helps you customize the fab button.

@AlexVarchuk AlexVarchuk self-assigned this Jan 31, 2022
@clarencedesmarais
Copy link
Author

Thanks :)

@AlexVarchuk
Copy link
Collaborator

@clarencedesmarais Hi! Sorry for the long delay. We discussed it. And added options to the theme object and props for hiding the fab button. We plan to release it this week.

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

Successfully merging a pull request may close this issue.

3 participants