@@ -156,48 +156,62 @@ const Banner = React.forwardRef<HTMLDivElement, BannerProps>(function Banner(
156156 { image ? < Box className = { styles . image } > { image } </ Box > : null }
157157
158158 < Box className = { styles . content } display = "flex" gap = "small" >
159- < Box className = { styles . icon } >
160- { type === 'neutral' ? icon : < BannerIcon type = { type } /> }
161- { closeButton }
162- </ Box >
163-
164159 < Box display = "flex" flexDirection = "column" gap = "small" flexGrow = { 1 } >
165160 < Box
166161 className = { styles . topContent }
167162 display = "flex"
168163 gap = "small"
169- alignItems = "flexStart "
164+ alignItems = "center "
170165 >
171166 < Box
172- className = { styles . copy }
167+ className = { styles . iconCopy }
173168 display = "flex"
174- flexDirection = "column"
169+ gap = "small"
170+ alignItems = "flexStart"
175171 flexGrow = { 1 }
176172 >
177- { title ? (
178- < Box id = { titleId } className = { styles . title } >
179- { title }
180- </ Box >
181- ) : null }
173+ < Box className = { styles . typeIcon } >
174+ { type === 'neutral' ? icon : < BannerIcon type = { type } /> }
175+ </ Box >
182176 < Box
183- id = { descriptionId }
184- className = { [ styles . description , title ? styles . secondary : null ] }
177+ className = { styles . copy }
178+ display = "flex"
179+ flexDirection = "column"
180+ flexGrow = { 1 }
185181 >
186- { description }
187- { inlineLinks ?. map ( ( { label, ...props } , index ) => {
188- return (
189- < React . Fragment key = { index } >
190- < TextLink
191- { ...props }
192- exceptionallySetClassName = { styles . inlineLink }
193- >
194- { label }
195- </ TextLink >
196- { index < inlineLinks . length - 1 ? < span > · </ span > : '' }
197- </ React . Fragment >
198- )
199- } ) }
182+ { title ? (
183+ < Box id = { titleId } className = { styles . title } >
184+ { title }
185+ </ Box >
186+ ) : null }
187+ < Box
188+ id = { descriptionId }
189+ className = { [
190+ styles . description ,
191+ title ? styles . secondary : null ,
192+ ] }
193+ >
194+ { description }
195+ { inlineLinks ?. map ( ( { label, ...props } , index ) => {
196+ return (
197+ < React . Fragment key = { index } >
198+ < TextLink
199+ { ...props }
200+ exceptionallySetClassName = { styles . inlineLink }
201+ >
202+ { label }
203+ </ TextLink >
204+ { index < inlineLinks . length - 1 ? (
205+ < span > · </ span >
206+ ) : (
207+ ''
208+ ) }
209+ </ React . Fragment >
210+ )
211+ } ) }
212+ </ Box >
200213 </ Box >
214+ { closeButton }
201215 </ Box >
202216
203217 { action || closeButton ? (
0 commit comments