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

Changing Blueprint Dialog close button style #3666

Closed
arifsuleman opened this issue Jul 17, 2019 · 5 comments
Closed

Changing Blueprint Dialog close button style #3666

arifsuleman opened this issue Jul 17, 2019 · 5 comments

Comments

@arifsuleman
Copy link

Environment

  • Package version(s):
  • Browser and OS versions:

Question

Dear Support,
I am using Blueprint Dialog component to my reactjs app. I need to change the close button style of Dialog i.e default close button that shows on right corner of dialog window, Could you plz advise how to do that.
thanks

@adidahiya
Copy link
Contributor

It depends on which part you want to customize, but generally you should open up the DOM inspector and find the relevant CSS classes which you want to override:

image

Then add custom CSS to your application which applies additional custom styles to those CSS selectors.

@arifsuleman
Copy link
Author

Hello,
I did use the same class name "bp3-button bp3-minimal bp3-dialog-close-button" and they have the two attributes box-shadow: none; and -webkit-box-shadow: none; . I noticed removing them in inspect element gives me the border but what should be the correct approach/style attribute value to override them. I would appreciate if you plz provide some sample style to apply.
thanks

@igor-volk-red-deer
Copy link

Is there a way to override the svg the button uses?

@adidahiya
Copy link
Contributor

@igor-volk-red-deer no. If you need to customize the dialog appearance that much, I would suggest building your own using <Overlay> (you can use the <Dialog> implementation as a template).

@igor-volk-red-deer
Copy link

Thank you for clarifying @adidahiya

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

No branches or pull requests

3 participants