From f295123ff5a228f9a9ee4cd4745086b5b3c6958c Mon Sep 17 00:00:00 2001 From: carbon-bot Date: Fri, 3 Apr 2020 19:03:38 +0000 Subject: [PATCH 1/3] chore(project): sync generated files --- packages/components/docs/sass.md | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/packages/components/docs/sass.md b/packages/components/docs/sass.md index cb1fd2a8f5e1..04b05f3edb92 100644 --- a/packages/components/docs/sass.md +++ b/packages/components/docs/sass.md @@ -3523,6 +3523,7 @@ $carbon--spacing-08: 2.5rem; - **Used by**: - [snippet [mixin]](#snippet-mixin) - [listbox [mixin]](#listbox-mixin) + - [inline-notifications [mixin]](#inline-notifications-mixin) - [search [mixin]](#search-mixin) - [text-area [mixin]](#text-area-mixin) - [text-input [mixin]](#text-input-mixin) @@ -3548,6 +3549,7 @@ $carbon--spacing-09: 3rem; - [file-uploader [mixin]](#file-uploader-mixin) - [listbox [mixin]](#listbox-mixin) - [modal [mixin]](#modal-mixin) + - [inline-notifications [mixin]](#inline-notifications-mixin) - [tile [mixin]](#tile-mixin) ### ✅carbon--spacing-10 [variable] @@ -19874,6 +19876,7 @@ Inline notification styles @include reset; display: flex; + flex-wrap: wrap; position: relative; height: auto; min-height: rem(48px); @@ -19886,6 +19889,7 @@ Inline notification styles @include carbon--breakpoint(md) { max-width: rem(608px); + flex-wrap: nowrap; } @include carbon--breakpoint(lg) { @@ -20008,7 +20012,11 @@ Inline notification styles .#{$prefix}--inline-notification__details { display: flex; flex-grow: 1; - margin: 0 $carbon--spacing-05; + margin: 0 $carbon--spacing-09 0 $carbon--spacing-05; + + @include carbon--breakpoint(md) { + margin: 0 $carbon--spacing-05; + } } .#{$prefix}--inline-notification__icon { @@ -20035,7 +20043,12 @@ Inline notification styles .#{$prefix}--inline-notification__action-button.#{$prefix}--btn--ghost { height: rem(32px); - margin: $carbon--spacing-03 0; + margin-bottom: $carbon--spacing-03; + margin-left: $carbon--spacing-08; + + @include carbon--breakpoint(md) { + margin: $carbon--spacing-03 0; + } &, &:hover, @@ -20062,6 +20075,9 @@ Inline notification styles .#{$prefix}--inline-notification__close-button { @include focus-outline('reset'); + position: absolute; + top: 0; + right: 0; display: flex; flex-direction: column; justify-content: center; @@ -20085,6 +20101,10 @@ Inline notification styles .#{$prefix}--inline-notification__close-icon { fill: $inverse-01; } + + @include carbon--breakpoint(md) { + position: static; + } } .#{$prefix}--inline-notification--low-contrast { @@ -20128,8 +20148,10 @@ Inline notification styles - [support-04 [variable]](#support-04-variable) - [inverse-support-03 [variable]](#inverse-support-03-variable) - [support-03 [variable]](#support-03-variable) + - [carbon--spacing-09 [variable]](#carbon--spacing-09-variable) - [carbon--spacing-02 [variable]](#carbon--spacing-02-variable) - [carbon--spacing-03 [variable]](#carbon--spacing-03-variable) + - [carbon--spacing-08 [variable]](#carbon--spacing-08-variable) - [inverse-focus-ui [variable]](#inverse-focus-ui-variable) - [inverse-hover-ui [variable]](#inverse-hover-ui-variable) From daf9c7da349467daf8dbe93f404d26f1c692861f Mon Sep 17 00:00:00 2001 From: TJ Egan Date: Fri, 3 Apr 2020 12:38:53 -0700 Subject: [PATCH 2/3] fix(modal): ensure modal renders correctly on mobile safari (#5776) * fix(modal): ensure modal renders correctly on mobile safari * fix(modal): set position fixed for all mobile devices * Update packages/components/src/components/modal/_modal.scss Co-Authored-By: emyarod Co-authored-by: emyarod --- packages/components/src/components/modal/_modal.scss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/components/src/components/modal/_modal.scss b/packages/components/src/components/modal/_modal.scss index 32310f76c263..20687f4e5158 100644 --- a/packages/components/src/components/modal/_modal.scss +++ b/packages/components/src/components/modal/_modal.scss @@ -67,7 +67,8 @@ } .#{$prefix}--modal-container { - position: relative; + position: fixed; + top: 0; display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: auto; @@ -84,6 +85,7 @@ transition: transform $duration--moderate-02 motion(exit, expressive); @include carbon--breakpoint(md) { + position: static; width: 84%; max-height: 90%; height: auto; From acf0592fff479d944fa5bf0a03644c0b1609d4ed Mon Sep 17 00:00:00 2001 From: carbon-bot Date: Fri, 3 Apr 2020 19:47:53 +0000 Subject: [PATCH 3/3] chore(project): sync generated files --- packages/components/docs/sass.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/components/docs/sass.md b/packages/components/docs/sass.md index 04b05f3edb92..f009409821fa 100644 --- a/packages/components/docs/sass.md +++ b/packages/components/docs/sass.md @@ -19493,7 +19493,8 @@ Modal styles } .#{$prefix}--modal-container { - position: relative; + position: fixed; + top: 0; display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: auto; @@ -19510,6 +19511,7 @@ Modal styles transition: transform $duration--moderate-02 motion(exit, expressive); @include carbon--breakpoint(md) { + position: static; width: 84%; max-height: 90%; height: auto;