Skip to content

Commit 0b7cb77

Browse files
button border so outline makes layout jump
1 parent 789d22a commit 0b7cb77

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

package-lock.json

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue3-tailwind-components",
3-
"version": "0.3.7",
3+
"version": "0.3.8",
44
"description": "A library of Vue 3 components that use Tailwind",
55
"keywords": [
66
"vue3",

src/components/button/TwButton.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export default {
6969
bgcolor() {
7070
let op = this.disabled? ' opacity-50':''
7171
let bg_color = this.selected? this.selectedColor:this.color
72-
let cls = 'bg-'+bg_color+'-500 hover:bg-'+bg_color+'-700 text-white border-'+bg_color+'-500'
72+
let cls = 'bg-'+bg_color+'-500 hover:bg-'+bg_color+'-700 text-white border-'+bg_color+'-500 border border-'+bg_color+'-500 '
7373
if(this.outline){
7474
if(this.menu){
7575
cls = 'hover:bg-'+bg_color+'-500 text-'+bg_color+'-500 hover:text-white'

0 commit comments

Comments
 (0)