Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

button button does not rebound problem


<button type="button" class="btn btn-sm btn-danger">remove</button> Why use this button? It will not rebound when pressed. For demo6 vue version projects, it is also not possible to use a link to replace it.


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (7)


Hi,

Sorry for the late reply.

Could you please give us more context on your problem?

You can find examples of using buttons in our documentation.
https://preview.keenthemes.com/metronic8/vue/docs/base/buttons

Regards,
Lauris Stepanovs,
Keenthemes Support Team



Hi,

Primary

When clicked, the button has a pressed effect, but after releasing the mouse, it still visually appears to be in the pressed state. This is my issue description.



Hi,

This is an expected behavior of button elements, we have an active state style, to remove the button's active state you can click outside of the button. If you want to change the active state style you can do it in src/assets/sass/core/components/mixins/_buttons.scss

Let me know if you need any further help on this topic or anything else.

Regards,
Lauris Stepanovs,
Keenthemes Support Team



Can you help me write a specific example? Thank you.



Hi,

If you want your button to have the default color when it is activated you can use default color variables instead of active colors as shown below.


@if ( $color != null ) {
color: $color;
}

@if ( $icon-color != null ) {
i,
.svg-icon {
color: $icon-color;
}

&.dropdown-toggle:after {
color: $icon-color;
}
}

@if ( $border-color != null ) {
border-color: $border-color;
}

@if ( $bg-color != null ) {
background-color: $bg-color;
}


Regards,
Lauris Stepanovs,
Keenthemes Support Team



OK Thank you.



Hi,

Please let us know if you need any further help on this problem or anything else.

Regards,
Lauris Stepanovs,
Keenthemes Support Team


Your Support Matters!

We will highly appreciate your Metronic Review on Themeforest.
Please go to Themeforest Downloads page, select Metronic & leave your feedback.
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(