Skip to content

Commit

Permalink
fix: use display: inline-block on Button
Browse files Browse the repository at this point in the history
  • Loading branch information
brettdorrans committed Aug 28, 2022
1 parent c65cf85 commit 725dc74
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 29 deletions.
35 changes: 7 additions & 28 deletions src/components/button/__snapshots__/Button.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ exports[`it works 1`] = `
.c0 {
border-style: solid;
text-align: center;
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
display: inline-block;
position: relative;
font-size: 1rem;
font-weight: 500;
Expand Down Expand Up @@ -70,10 +67,7 @@ exports[`it works with anchor 1`] = `
.c0 {
border-style: solid;
text-align: center;
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
display: inline-block;
position: relative;
font-size: 1rem;
font-weight: 500;
Expand Down Expand Up @@ -137,10 +131,7 @@ exports[`it works with icon 1`] = `
.c0 {
border-style: solid;
text-align: center;
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
display: inline-block;
position: relative;
font-size: 1rem;
font-weight: 500;
Expand Down Expand Up @@ -219,10 +210,7 @@ exports[`it works with loading 1`] = `
.c0 {
border-style: solid;
text-align: center;
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
display: inline-block;
position: relative;
font-size: 1rem;
font-weight: 500;
Expand Down Expand Up @@ -362,10 +350,7 @@ exports[`it works with size large 1`] = `
.c0 {
border-style: solid;
text-align: center;
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
display: inline-block;
position: relative;
font-size: 1rem;
font-weight: 500;
Expand Down Expand Up @@ -429,10 +414,7 @@ exports[`it works with size medium 1`] = `
.c0 {
border-style: solid;
text-align: center;
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
display: inline-block;
position: relative;
font-size: 1rem;
font-weight: 500;
Expand Down Expand Up @@ -496,10 +478,7 @@ exports[`it works with size small 1`] = `
.c0 {
border-style: solid;
text-align: center;
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
display: inline-block;
position: relative;
font-size: 1rem;
font-weight: 500;
Expand Down
2 changes: 1 addition & 1 deletion src/components/button/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const buttonVariants = ({
};

const buttonBaseStyles: Styles = {
display: 'inline-flex',
display: 'inline-block',
position: 'relative',
borderWidth: '1',
boxShadow: '1',
Expand Down

0 comments on commit 725dc74

Please sign in to comment.