@ons/design-system 74.0.0-next.10 → 74.0.0-next.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/access-code/example-access-code-error.njk +1 -1
- package/components/access-code/example-access-code.njk +1 -1
- package/components/address-input/_macro.njk +6 -6
- package/components/address-input/_macro.spec.js +0 -3
- package/components/address-output/_macro.njk +1 -1
- package/components/announcement-banner/_announcement-banner.scss +5 -0
- package/components/autosuggest/_autosuggest.scss +8 -0
- package/components/autosuggest/autosuggest.ui.js +8 -5
- package/components/back-to-top/_back-to-top.scss +7 -0
- package/components/back-to-top/_macro.njk +1 -1
- package/components/char-check-limit/_macro.njk +16 -14
- package/components/details/_details.scss +9 -0
- package/components/details/example-details-with-warning.njk +1 -1
- package/components/featured-article/_macro.njk +4 -4
- package/components/featured-article/macro.spec.js +2 -2
- package/components/feedback/_macro.njk +4 -1
- package/components/feedback/_macro.spec.js +1 -1
- package/components/figure/_figure.scss +1 -0
- package/components/figure/_macro.njk +3 -3
- package/components/footer/_macro.njk +5 -2
- package/components/hero/_hero.scss +4 -0
- package/components/input/_input.scss +4 -0
- package/components/input/_macro.njk +4 -1
- package/components/label/_label.scss +3 -0
- package/components/list/_list.scss +5 -0
- package/components/message-list/_message-list.scss +2 -0
- package/components/panel/_macro.njk +1 -1
- package/components/panel/_panel.scss +8 -0
- package/components/panel/example-panel-bare.njk +1 -1
- package/components/phase-banner/_phase-banner.scss +1 -0
- package/components/quote/_macro.njk +1 -1
- package/components/skip-to-content/_macro.njk +1 -1
- package/components/skip-to-content/_skip.scss +8 -0
- package/css/main.css +1 -1
- package/package.json +1 -1
- package/scripts/main.es5.js +1 -1
- package/scripts/main.js +1 -1
- package/scss/base/_typography.scss +9 -0
- package/scss/helpers/_mixins.scss +8 -0
- package/scss/utilities/_utilities.scss +10 -0
- package/scss/vars/_forms.scss +2 -1
- package/scss/vars/_index.scss +1 -0
- package/scss/vars/_utilities.scss +2 -0
|
@@ -34,3 +34,13 @@
|
|
|
34
34
|
@include bp-suffix(ons-u-wa--) {
|
|
35
35
|
width: auto !important;
|
|
36
36
|
}
|
|
37
|
+
|
|
38
|
+
// Utility class to restrict reading width (mixin defined in helpers/_mixins.scss)
|
|
39
|
+
.ons-u-reading-width {
|
|
40
|
+
@include reading-width;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Utility class to override reading width restriction (mixin defined in helpers/_mixins.scss)
|
|
44
|
+
.ons-u-no-reading-width {
|
|
45
|
+
@include no-reading-width;
|
|
46
|
+
}
|
package/scss/vars/_forms.scss
CHANGED
|
@@ -16,7 +16,8 @@ $nbsp-width: 0.288rem;
|
|
|
16
16
|
@mixin input-width($class-name, $char-width: $char-max-width) {
|
|
17
17
|
@each $width in $input-widths {
|
|
18
18
|
.#{str-replace($class-name, '{x}', $width)} {
|
|
19
|
-
|
|
19
|
+
// Cap at reading-width so very wide classes don't exceed it
|
|
20
|
+
max-width: min(#{input-width-calc($width, $char-width)}, $reading-width);
|
|
20
21
|
width: 100%;
|
|
21
22
|
|
|
22
23
|
.ons-field__group & {
|
package/scss/vars/_index.scss
CHANGED