File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
components/src/MessageBar Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,11 @@ All notable changes to this project will be documented in this file.
55The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
66and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
77
8- ##[ 0.8.1]
8+ ## [ 0.8.1]
99
10- ## Fixed
10+ ### Fixed
1111
12+ - ` MessageBar ` needs to allow DOM properties to be passed through (aria support and the like)
1213- Fix issue where InputDate did not render the correct month when setting a value prop
1314
1415## [ 0.8.0]
Original file line number Diff line number Diff line change 2727import { CompatibleHTMLProps , TypographyProps } from '@looker/design-tokens'
2828import React , { forwardRef , Ref } from 'react'
2929import styled from 'styled-components'
30+ import { omitStyledProps } from '@looker/design-tokens'
3031import { IconButton } from '../Button'
3132import { SimpleLayoutProps , simpleLayoutCSS } from '../Layout/utils/simple'
3233import { getIntentLabel , Status } from '../Status'
@@ -54,13 +55,13 @@ const MessageBarLayout = forwardRef(
5455 id,
5556 children,
5657 canDismiss,
57- className,
5858 intent = 'inform' ,
5959 onDismiss,
60+ ...props
6061 } : MessageBarProps ,
6162 ref : Ref < HTMLDivElement >
6263 ) => (
63- < div className = { className } aria-live = "polite" ref = { ref } role = "status" >
64+ < div aria-live = "polite" ref = { ref } role = "status" { ... omitStyledProps ( props ) } >
6465 < Status intent = { intent } />
6566 < MessageBarContent > { children } </ MessageBarContent >
6667 { canDismiss && (
Original file line number Diff line number Diff line change @@ -36,4 +36,5 @@ export { prismTheme } from './prismTheme'
3636// Useful external utilities
3737export * from './customizeable_attributes'
3838export * from './utils/animations'
39+ export * from './utils/omit'
3940export { generateThemeFromCoreColors } from './utils/theme'
You can’t perform that action at this time.
0 commit comments