File tree Expand file tree Collapse file tree 2 files changed +21
-7
lines changed
components/src/components/notification
react/src/components/Notification Expand file tree Collapse file tree 2 files changed +21
-7
lines changed Original file line number Diff line number Diff line change 2424 @include reset ;
2525
2626 display : flex ;
27+ flex-wrap : wrap ;
2728 position : relative ;
2829 height : auto ;
2930 min-height : rem (48px );
3637
3738 @include carbon--breakpoint (md) {
3839 max-width : rem (608px );
40+ flex-wrap : nowrap ;
3941 }
4042
4143 @include carbon--breakpoint (lg) {
158160 .#{$prefix } --inline-notification__details {
159161 display : flex ;
160162 flex-grow : 1 ;
161- margin : 0 $carbon--spacing-05 ;
163+ margin : 0 $carbon--spacing-09 0 $carbon--spacing-05 ;
164+
165+ @include carbon--breakpoint (md) {
166+ margin : 0 $carbon--spacing-05 ;
167+ }
162168 }
163169
164170 .#{$prefix } --inline-notification__icon {
185191
186192 .#{$prefix } --inline-notification__action-button.#{$prefix } --btn--ghost {
187193 height : rem (32px );
188- margin : $carbon--spacing-03 0 ;
194+ margin-bottom : $carbon--spacing-03 ;
195+ margin-left : $carbon--spacing-08 ;
196+
197+ @include carbon--breakpoint (md) {
198+ margin : $carbon--spacing-03 0 ;
199+ }
189200
190201 & ,
191202 & :hover ,
212223
213224 .#{$prefix } --inline-notification__close-button {
214225 @include focus-outline (' reset' );
226+ position : absolute ;
227+ top : 0 ;
228+ right : 0 ;
215229 display : flex ;
216230 flex-direction : column ;
217231 justify-content : center ;
235249 .#{$prefix } --inline-notification__close-icon {
236250 fill : $inverse-01 ;
237251 }
252+
253+ @include carbon--breakpoint (md) {
254+ position : static ;
255+ }
238256 }
239257
240258 .#{$prefix } --inline-notification--low-contrast {
Original file line number Diff line number Diff line change @@ -26,11 +26,7 @@ const notificationProps = () => ({
2626 lowContrast : boolean ( 'Use low contrast variant (lowContrast)' , false ) ,
2727 role : text ( 'ARIA role (role)' , 'alert' ) ,
2828 title : text ( 'Title (title)' , 'Notification title' ) ,
29- subtitle : (
30- < span >
31- Subtitle text goes here. < a href = "#example" > Example link</ a >
32- </ span >
33- ) ,
29+ subtitle : text ( 'Subtitle (subtitle)' , 'Subtitle text goes here.' ) ,
3430 iconDescription : text (
3531 'Icon description (iconDescription)' ,
3632 'describes the close button'
You can’t perform that action at this time.
0 commit comments