Repository navigation
What's Changed
π New features
- Update fonts
- Reduce line heights for
default,bookingsgschemes - Update letter spacing for
defaultscheme - Fix incorrect letter spacing unit for
sgw-digital-lobbyscheme
- Reduce line heights for
- Adjust spacing between
Form.Labellabel and subtitle - Adjust alignment of external icon for
Typography.Link - Adjust spacing between file name and error message in
FileUpload - Support optional description, allow custom label/subtitle for description field, and make visual enhancements to
FileUpload - New
ToteBoardtheme - [a11y] Trap focus in
Navbardrawer - Allow
DataTableaction bar to appear even without selection via theenableActionBarWithoutSelectionprop - Add new illustrations for
CareerCompasstheme inErrorDisplay - Update
Toggleerror selected styling - Show chevron icon for
Navbardesktop navitem when it has a submenu - Reposition
Navbardesktop submenu for the last navitem - Accept JSX for
Accordiontitle andLinkListtitle/description - Expose standalone
Tab.TabListandTab.Panelto support custom tab composition - Add
isOptionDisabledprop to support disabling of options inSelect,RangeSelectandInputGrouplist variant - Expose
onExpandChangeforAccordionto track the accordion item state. When specified, the component becomes controlled - Update
Navbardrawer item spacing and active state for submenu item FullscreenImageCarouselenhancements- Support custom actions in addition to the default close, zoom and delete buttons
- Expose the top bar element (containing the file info and buttons) via
topBarRef
FileDownloadenhancements- Add default PDF icon thumbnail for PDF files
- Support custom click action on the card, overriding the default download behaviour
- [BREAKING] Upgraded SGDS masthead to v3.26.0
- [BREAKING] Replace SGDS masthead script injection with dynamic import from
@govtechsg/sgds-web-component- The CSP whitelist to
https://cdn.jsdelivr.net/npm/@govtechsg/sgds-web-component@3/components/Masthead/index.umd.jscan be removed from your application
- The CSP whitelist to
ποΈ Style fixes
- Update text colour of disabled
TimepickerandTimeRangePickerto match other form inputs - Improve calendar display with large fonts: allow calendar content to be scrolled when the date grid overflows. Affects components with calendar dropdowns such as
DateNavigatorandDateInput - Wrap long description text in
FileUpload - Update spacing between
Textareaand its error message/character counter - Update
Buttonto use body font family across all sizes
π Bug fixes
- Improve visibility of drawing in dark mode for
ESignature - Fix input fields remaining editable when
TimeRangePickercombobox variant is disabled - Improve scrolling behaviour of
DataTablefloating action bar - Fix flash of "No results found" in
PredictiveTextInput - Keep
DataTableselect all checkbox enabled ifrowsare non-empty BUTselectedIdsis undefined - Fix persisted hover state on
Sidenavitem - Resolve React unknown attribute warning for
Navbar - [Security] Sanitize href in
withNotificationBannerlink attributes (#1472)
π§ Miscellaneous
- [Security] Escape GitHub parameters before usage in workflow (#1472)
- [Security] Prevent command injection via shell metacharacters in target path for codemod command (#1472)
More details: https://github.com/LifeSG/react-design-system/wiki/Changelog-v3
Full Changelog: v3.4.0...v3.5.0