Releases: looker-open-source/components
Releases · looker-open-source/components
0.9.14
[0.9.14] - 2020-09-18
Added
Chip
supportsprefix
ComponentsProvider
now supportsloadGoogleFonts
which leveragesGoogleFontsLoader
GoogleFontsLoader
InputColor
now includesname
inonChange
response eventInputChips
andSelectMulti
chip selection and copy-pastingSelect
now supportsshowCreate
andformatCreateLabel
that were previously only supported inSelectMulti
useClickable
hook- Icons:
FeedbackOutline
added
Changed
Chip
/ChipButton
now callonClick
on enter or space keyComponentsProvider
now takescolors
prop instead ofcoreColors
and acceptsCoreColors & IntentColors
Prompt
/usePrompt
now optionally supportclearOnCancel
behaviortheme.fonts.*
updatesbody
added (now default for most components)brand
is now used just forButton*
,Heading
&Tabs
- Default values changed (now
body='Roboto'
,brand='Red Hat Display'
,code='Roboto Mono'
)
theme.fontWeights.extraBold
&theme.fontWeights.light
removedTree
childAccordionDisclosure
now receives font-weight value from styled-components selector
Fixed
Icon
colors can be modified when used inside aMenuItem
detail prop.Popover
cancel first click outside behavior not working with anonMouseUp
used anywhere on the pageSelectMulti
failing to appropriately show "No options" whenshowCreate
is usedSelect
overwriting search value with the current option value if the option's value and label are different- Storybook fixes to silence console warnings
Tooltip
&Popover
no longer support (optional) arrow indicator
Removed
prismTheme
is no longer publishedtheme.colors.palette
is no longer available (palette
can be import from@looker/design-tokens
but this is a legacy behavior and is not encouraged)
0.9.13
0.9.12
Added
DividerVertical
componentSelect
option icons- Icon:
- Added
LQA
icon artwork
- Added
Changed
- Spacing and density adjusted on
TreeGroup
label to better match density ofTreeItem
s
Fixed
MenuItem
now supportsdescription
RangeSlider
value labels now move with the thumb controls in IE11Slider
style inconsistencies resolved by rendering a div rather than the vanilla slider inputSelect
name attribute is passed to the inputSelect
value can now be cleared via external state changeSelect
andSelectMulti
performance issue causing poor rendering when inside aDialog
Select
layout bug corrected at small sizes (min-width onInputText
to fix)Space
gap is now consistently rendered across browsersTabs
fix for distributed so each tab takes up an equal amount of space.
0.9.11
0.9.10
Added
ActionListControlBar
componentChipButton
introduced for limited use casesuseActionListSelectManager
hook- Added
xxxxxlarge
to sizes to support updated type ramp.
Fixed
Accordion
&Tree
presentation fixes for IE11ActionList
updated documentation to include info on control bar behaviorAvatar*
corrected styling conflicts when underlying component is switched to button (viarole="button"
)ButtonSet
&ButtonGroup
heights corrected to stay at36px
DialogHeader
presentation fix for IE11InputChips
andSelectMulti
overflow when a fixed height is usedInputChips
andSelectMulti
long values breaking out of the inputInputSearch
,Select
,InputChips
andSelectMulti
x button not clickable withautoResize
and a max-width reachedMenuItem
disabled prop is not clickable and its not a link.- detail is part of
MenuItem
's clickable area - update Error Icon for Fields validation message
- detail is part of
Select
display value now properly updates when the option label for the current value changesSelectMulti
andInputChips
issues clicking on icons and chipsSelectMulti
list height now adjusts as needed when chips are addedSelect
/SelectMulti
list closing when trying to scroll by dragging the scrollbarSpace
presentation fix for IE11 (also affects consumers)Tabs
no longer show scrollbar when overflowingSelect
getting text highlighted in a focus trap when not filterableTree
default color is text4 (was previously a different color due to browser button defaults)Tree
correct React warning about nested buttons by changingTreeItem
back todiv
withrole="button
Changed
ActionList
- Updated documentation to include info on control bar behavior
- Refactored select behavior to flow from a single
select
prop object - conditionally renders
ActionListControlBar
based onbulk
prop
ActionListManager
- renamednoResultsText
tonoResultsDisplay
and now supports aReactNode
(supply a JSX for custom formatting)ButtonOutline
andButtonTransparent
improved color application to be more inline with design specButtonSet
,ButtonToggle
&Chip
correlated use of color forInputChipsBase
updated to use styled() wrapped for Chip margin overridesinputHeight
consolidated in single location and usage suite-wideMenu
,Popover
,Tooltip
no longer feature arrow by default- Replace
react-hotkeys
and improve keyboard ux for multiple stacked focus traps (effectsMenuList
,Surface
, andOverlaySurface
)
@looker/design-tokens
FontSizes
andLineHeights
design tokens updated to match new type ramp spec.neutral
intent color is now defaults tocharcoal500
Removed
Chip
removed most prop support
0.9.9
0.9.8
0.9.7
Added
AvatarCombo
,AvatarIcon
&AvatarUser
now supportsrole="button"
- Added support for common DOM properties and event handlers (e.g.:
onClick
) - Improved a11y for all
Avatar*
components - Added Storybook with knobs
- Added support for common DOM properties and event handlers (e.g.:
IconButton
now supportstooltipWidth
propertyMenuItem
updated to supporticonArtwork
in addition toicon
Popover
now supportscancelClickOutside
(true
by default) to determine whether the "dismissal" click event is allowed to propagate- New
Icon
artworkLogout
,AddComment
,Comment
,Feedback
Changed
Accordion
added accessibility improvementsActionListCheckbox
now usearia-describedby
attribute for accessibility purposes- Receives id from parent
ActionListRow
, who receives it from parentActionListItem
orActionListHeader
- Receives id from parent
MenuDisclosure
- tooltip placement now defaults tobottom
Select
andSelectMulti
withisFilterable
orfreeInput
no longer cancel the first click outside when the list is open- update
Tab
to scroll left to right when overflow theme
"pressed" colors are more discernable from other stateful colorstheme.colors.*Pressed
colors are more discernable from other stateful colorstheme.colors.textX
restructuredtext1-5
now go from lightest to darkest to matchui1-5
- Reduced number of steps:
text0
is nowtext5
(consolidated the formertext0
&text1
)text6
is nowtext1
(consolidated the formertext6
&text5
)
Fixed
Select
/SelectMulti
toggling the list from the caretSelect
andSelectMulti
keyboard navigation issues when filtering optionsSelectMulti
withfreeInput
tokenizing the input value when an option is clickedTabs
now can be controlled- Fix a few typos in the
Field
documentation ActionList
fixed bug where passing object (with single attribute "all") intocanSelect
results in select all checkbox regardless of "all" settingLink
no longer generates console errors whenkeyColor
orunderline
prop are used
0.9.6
- Storybook is now deployed to
https://components.looker.com/storybook
Added
iconSizes
style function includesxxsmall
caseLink
now supports explicitunderline
&keyColor
propertiesTreeItem
andTree
- Altered style defaults
TreeGroup
- Added additional test case for color override behavior
undefinedCoalesce
util function- Icons:
FactCheck
Changed
Accordion
- Updated padding props to affect
AccordionDisclosure
andAccordionContent
containers rather than parentAccordion
container AccordionDisclosure
removed defaultheight: 100%
- Updated padding props to affect
ButtonBase
removed negative margin fromiconMargins
helper functionCalendar
,FieldDate
,FieldDateRange
,InputDate
&InputDateRange
now require "deep" imports- E.g.:
Calendar
imports from@looker/components/lib/Calendar
)
- E.g.:
Icon
no longer outputs a<title />
by default and Icon is marked witharia-hide
unless a title is explicitly specifiedInputSearch
clear button is larger and now focusable, divider and summary text spacing refinedMenu
now has a new focus style forMenuItems
as well as updateing sizingMenuGroup
labels improvements when usingcompact
MessageBar
- MessageBar is dismissable by default. Use prop
noActions
in place ofcanDismiss={false}
to hide dismiss button. - Adds new
visible
prop to toggle display externally - Accepts primary and secondary action overrides and callbacks
- MessageBar is dismissable by default. Use prop
TabList
now supports distribute proptheme.zIndexFloor
now defaults to1
instead ofundefined
(this helps with compatibility due to Firefox's stacking order eccentricities)Tooltip
now renders in aPortal
Tree
andTreeItem
updated docs and test suiteTree
increased gap size between indicator and label to align with siblingTreeItem
s with icons
Fixed
MenuGroup
now includes icon placeholder spacing if higherMenuItemContext
hasrenderIconPlaceholder === true
Select
/SelectMulti
keyboard navigation when filtering and going from > 100 to < 100 optionsSelectMulti
withfreeInput
not saving input value on tab keySelectMulti
list not closing on blurTreeGroup
properly overrides color of childTreeItem
labels andTree
labels
Removed
- Removed
Modal*
aliases toDialog*
0.9.5
Added
DialogHeader
- Supports
detail
prop as alternative to defaultclose
icon - Supports
fontWeight
&fontSize
for backwards compatibility
- Supports
Changed
Fieldset
accordion mode auto-indents elements in the innerAccordionContent
AccordionDisclosure
,TreeItem
no longer display purple border on click- This purple border will only display when tabbing onto a
TreeItem
orAccordionDisclosure
(Tree
)
- This purple border will only display when tabbing onto a
Fixed
Dialog
focus not returning to trigger when closedDialogContent
withborderBottom
prop CSS output error (no border, no flex: 8)InputText
interacts poorly withtheme.reset
property in narrow casesSelect
not opening when rendered in aDialog
opened from aPopover