Skip to content

Commit c7439f5

Browse files
authored
Merge pull request #151 from Wikia/is-full-width-fix
full width buttons fix
2 parents bde5fd1 + 72b6cf9 commit c7439f5

File tree

7 files changed

+9
-7
lines changed

7 files changed

+9
-7
lines changed

dist/css/styles.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/scss/wds-components/_buttons.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
display: inline-flex;
3333
font-size: $wds-typescale-size-minus-2;
3434
font-weight: 600;
35+
justify-content: center;
3536
letter-spacing: .15px;
3637
line-height: $line-height;
3738
margin: 0;
@@ -83,7 +84,7 @@
8384
}
8485

8586
&.wds-is-full-width {
86-
width: 100%;
87+
display: flex;
8788
}
8889

8990
&.wds-is-square {

docs/assets/design-system.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/design-system.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/wds.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<meta name="viewport" content="width=device-width, initial-scale=1">
99

1010

11-
<meta name="design-system/config/environment" content="%7B%22modulePrefix%22%3A%22design-system%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22/%22%2C%22locationType%22%3A%22hash%22%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%7D%2C%22APP%22%3A%7B%22name%22%3A%22design-system%22%2C%22version%22%3A%226.2.2+56c100f5%22%7D%2C%22exportApplicationGlobal%22%3Afalse%7D" />
11+
<meta name="design-system/config/environment" content="%7B%22modulePrefix%22%3A%22design-system%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22/%22%2C%22locationType%22%3A%22hash%22%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%7D%2C%22APP%22%3A%7B%22name%22%3A%22design-system%22%2C%22version%22%3A%227.1.0+bde5fd1b%22%7D%2C%22exportApplicationGlobal%22%3Afalse%7D" />
1212

1313
<link rel="stylesheet" href="/assets/vendor.css">
1414
<link rel="stylesheet" href="/assets/design-system.css">

style-guide/styles/wds-components/_buttons.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
display: inline-flex;
3333
font-size: $wds-typescale-size-minus-2;
3434
font-weight: 600;
35+
justify-content: center;
3536
letter-spacing: .15px;
3637
line-height: $line-height;
3738
margin: 0;
@@ -83,7 +84,7 @@
8384
}
8485

8586
&.wds-is-full-width {
86-
width: 100%;
87+
display: flex;
8788
}
8889

8990
&.wds-is-square {

0 commit comments

Comments
 (0)