Releases: looker-open-source/components
Releases · looker-open-source/components
0.9.14
[0.9.14] - 2020-09-18
Added
ChipsupportsprefixComponentsProvidernow supportsloadGoogleFontswhich leveragesGoogleFontsLoaderGoogleFontsLoaderInputColornow includesnameinonChangeresponse eventInputChipsandSelectMultichip selection and copy-pastingSelectnow supportsshowCreateandformatCreateLabelthat were previously only supported inSelectMultiuseClickablehook- Icons:
FeedbackOutlineadded
Changed
Chip/ChipButtonnow callonClickon enter or space keyComponentsProvidernow takescolorsprop instead ofcoreColorsand acceptsCoreColors & IntentColorsPrompt/usePromptnow optionally supportclearOnCancelbehaviortheme.fonts.*updatesbodyadded (now default for most components)brandis now used just forButton*,Heading&Tabs- Default values changed (now
body='Roboto',brand='Red Hat Display',code='Roboto Mono')
theme.fontWeights.extraBold&theme.fontWeights.lightremovedTreechildAccordionDisclosurenow receives font-weight value from styled-components selector
Fixed
Iconcolors can be modified when used inside aMenuItemdetail prop.Popovercancel first click outside behavior not working with anonMouseUpused anywhere on the pageSelectMultifailing to appropriately show "No options" whenshowCreateis usedSelectoverwriting search value with the current option value if the option's value and label are different- Storybook fixes to silence console warnings
Tooltip&Popoverno longer support (optional) arrow indicator
Removed
prismThemeis no longer publishedtheme.colors.paletteis no longer available (palettecan be import from@looker/design-tokensbut this is a legacy behavior and is not encouraged)
0.9.13
0.9.12
Added
DividerVerticalcomponentSelectoption icons- Icon:
- Added
LQAicon artwork
- Added
Changed
- Spacing and density adjusted on
TreeGrouplabel to better match density ofTreeItems
Fixed
MenuItemnow supportsdescriptionRangeSlidervalue labels now move with the thumb controls in IE11Sliderstyle inconsistencies resolved by rendering a div rather than the vanilla slider inputSelectname attribute is passed to the inputSelectvalue can now be cleared via external state changeSelectandSelectMultiperformance issue causing poor rendering when inside aDialogSelectlayout bug corrected at small sizes (min-width onInputTextto fix)Spacegap is now consistently rendered across browsersTabsfix for distributed so each tab takes up an equal amount of space.
0.9.11
0.9.10
Added
ActionListControlBarcomponentChipButtonintroduced for limited use casesuseActionListSelectManagerhook- Added
xxxxxlargeto sizes to support updated type ramp.
Fixed
Accordion&Treepresentation fixes for IE11ActionListupdated documentation to include info on control bar behaviorAvatar*corrected styling conflicts when underlying component is switched to button (viarole="button")ButtonSet&ButtonGroupheights corrected to stay at36pxDialogHeaderpresentation fix for IE11InputChipsandSelectMultioverflow when a fixed height is usedInputChipsandSelectMultilong values breaking out of the inputInputSearch,Select,InputChipsandSelectMultix button not clickable withautoResizeand a max-width reachedMenuItemdisabled 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
Selectdisplay value now properly updates when the option label for the current value changesSelectMultiandInputChipsissues clicking on icons and chipsSelectMultilist height now adjusts as needed when chips are addedSelect/SelectMultilist closing when trying to scroll by dragging the scrollbarSpacepresentation fix for IE11 (also affects consumers)Tabsno longer show scrollbar when overflowingSelectgetting text highlighted in a focus trap when not filterableTreedefault color is text4 (was previously a different color due to browser button defaults)Treecorrect React warning about nested buttons by changingTreeItemback todivwithrole="button
Changed
ActionList- Updated documentation to include info on control bar behavior
- Refactored select behavior to flow from a single
selectprop object - conditionally renders
ActionListControlBarbased onbulkprop
ActionListManager- renamednoResultsTexttonoResultsDisplayand now supports aReactNode(supply a JSX for custom formatting)ButtonOutlineandButtonTransparentimproved color application to be more inline with design specButtonSet,ButtonToggle&Chipcorrelated use of color forInputChipsBaseupdated to use styled() wrapped for Chip margin overridesinputHeightconsolidated in single location and usage suite-wideMenu,Popover,Tooltipno longer feature arrow by default- Replace
react-hotkeysand improve keyboard ux for multiple stacked focus traps (effectsMenuList,Surface, andOverlaySurface)
@looker/design-tokens
FontSizesandLineHeightsdesign tokens updated to match new type ramp spec.neutralintent color is now defaults tocharcoal500
Removed
Chipremoved most prop support
0.9.9
0.9.8
0.9.7
Added
AvatarCombo,AvatarIcon&AvatarUsernow 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.:
IconButtonnow supportstooltipWidthpropertyMenuItemupdated to supporticonArtworkin addition toiconPopovernow supportscancelClickOutside(trueby default) to determine whether the "dismissal" click event is allowed to propagate- New
IconartworkLogout,AddComment,Comment,Feedback
Changed
Accordionadded accessibility improvementsActionListCheckboxnow usearia-describedbyattribute for accessibility purposes- Receives id from parent
ActionListRow, who receives it from parentActionListItemorActionListHeader
- Receives id from parent
MenuDisclosure- tooltip placement now defaults tobottomSelectandSelectMultiwithisFilterableorfreeInputno longer cancel the first click outside when the list is open- update
Tabto scroll left to right when overflow theme"pressed" colors are more discernable from other stateful colorstheme.colors.*Pressedcolors are more discernable from other stateful colorstheme.colors.textXrestructuredtext1-5now go from lightest to darkest to matchui1-5- Reduced number of steps:
text0is nowtext5(consolidated the formertext0&text1)text6is nowtext1(consolidated the formertext6&text5)
Fixed
Select/SelectMultitoggling the list from the caretSelectandSelectMultikeyboard navigation issues when filtering optionsSelectMultiwithfreeInputtokenizing the input value when an option is clickedTabsnow can be controlled- Fix a few typos in the
Fielddocumentation ActionListfixed bug where passing object (with single attribute "all") intocanSelectresults in select all checkbox regardless of "all" settingLinkno longer generates console errors whenkeyColororunderlineprop are used
0.9.6
- Storybook is now deployed to
https://components.looker.com/storybook
Added
iconSizesstyle function includesxxsmallcaseLinknow supports explicitunderline&keyColorpropertiesTreeItemandTree- Altered style defaults
TreeGroup- Added additional test case for color override behavior
undefinedCoalesceutil function- Icons:
FactCheck
Changed
Accordion- Updated padding props to affect
AccordionDisclosureandAccordionContentcontainers rather than parentAccordioncontainer AccordionDisclosureremoved defaultheight: 100%
- Updated padding props to affect
ButtonBaseremoved negative margin fromiconMarginshelper functionCalendar,FieldDate,FieldDateRange,InputDate&InputDateRangenow require "deep" imports- E.g.:
Calendarimports from@looker/components/lib/Calendar)
- E.g.:
Iconno longer outputs a<title />by default and Icon is marked witharia-hideunless a title is explicitly specifiedInputSearchclear button is larger and now focusable, divider and summary text spacing refinedMenunow has a new focus style forMenuItemsas well as updateing sizingMenuGrouplabels improvements when usingcompactMessageBar- MessageBar is dismissable by default. Use prop
noActionsin place ofcanDismiss={false}to hide dismiss button. - Adds new
visibleprop to toggle display externally - Accepts primary and secondary action overrides and callbacks
- MessageBar is dismissable by default. Use prop
TabListnow supports distribute proptheme.zIndexFloornow defaults to1instead ofundefined(this helps with compatibility due to Firefox's stacking order eccentricities)Tooltipnow renders in aPortalTreeandTreeItemupdated docs and test suiteTreeincreased gap size between indicator and label to align with siblingTreeItems with icons
Fixed
MenuGroupnow includes icon placeholder spacing if higherMenuItemContexthasrenderIconPlaceholder === trueSelect/SelectMultikeyboard navigation when filtering and going from > 100 to < 100 optionsSelectMultiwithfreeInputnot saving input value on tab keySelectMultilist not closing on blurTreeGroupproperly overrides color of childTreeItemlabels andTreelabels
Removed
- Removed
Modal*aliases toDialog*
0.9.5
Added
DialogHeader- Supports
detailprop as alternative to defaultcloseicon - Supports
fontWeight&fontSizefor backwards compatibility
- Supports
Changed
Fieldsetaccordion mode auto-indents elements in the innerAccordionContentAccordionDisclosure,TreeItemno longer display purple border on click- This purple border will only display when tabbing onto a
TreeItemorAccordionDisclosure(Tree)
- This purple border will only display when tabbing onto a
Fixed
Dialogfocus not returning to trigger when closedDialogContentwithborderBottomprop CSS output error (no border, no flex: 8)InputTextinteracts poorly withtheme.resetproperty in narrow casesSelectnot opening when rendered in aDialogopened from aPopover