The New Way to Build with AI! Introducing ReUI — the developer platform for agentic UI with shadcn/ui
Browse ReUI Pro

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
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (7)

Deleted comment
 
Deleted comment
 
Deleted comment
 
Deleted comment
Deleted comment
 
Deleted comment
 
Deleted comment
 
Deleted comment
 
Deleted comment
 
Deleted comment
 
Deleted comment
 
Deleted comment
 
Deleted comment

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
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
buy metronic keenthemes mega bundle

ReUI

Open-source React components, blocks and templates built on shadcn/ui and Tailwind CSS by Keenthemes.