question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove inline styling from buttons

See original GitHub issue

I am using bootstrap, but setting confirmButtonClass: 'btn btn-primary', does not change any style.

This is because of some inline styling:

image

 style="display: inline-block; border-left-color: rgb(48, 133, 214); border-right-color: rgb(48, 133, 214); background-color: rgb(48, 133, 214);"

How can I disable this?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:3
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
limontecommented, Mar 6, 2016

Thank you again @canfiax for the another great suggestion!

Done https://github.com/limonte/sweetalert2/releases/tag/v0.4.1

confirmButtonClass: 'btn btn-primary',
buttonsStyling: false,
1reaction
limontecommented, Oct 6, 2016

@kennyhyun

How can I disable buttonsStyling

swal({
  text: 'Any fool can use a computer',
  buttonsStyling: false
})

Is there any global configurations?

swal.setDefauls({buttonsStyling: false});
swal('Any fool can use a computer')
Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove the complete styling of an HTML button/submit
Is there a way of completely removing the styling of a button in Internet Explorer? I use a css sprite for my button,...
Read more >
Overriding Default Button Styles | CSS-Tricks
You get so much for free when you use a real button, so here's a block of CSS to remove the headache of...
Read more >
How to remove all inline styles using JavaScript/jQuery
Example 1: This example uses attr() method to remove the inline style. ... innerHTML = "Click on the button to remove". + "...
Read more >
How to Fix & Remove Inline CSS - YouTube
Learn how to fix inline CSS in your code, and speed up both your development time and website in the process. Test your...
Read more >
Remove all classes, inline styling, design properties on this ...
“Just like the buttons have their button-styles.” · Inline styling and design properties indeed interfere with the styling defined in sass.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found