Releases: CMSgov/design-system
1.3.0
1.2.0
🚀 Added
@cmsgov/design-system-core
- Right-to-left checkbox/radio style - #144
- Added a "small" size variant to the
Choice
component - #146 - New
aria-valuetext
androle
props (with default values) added toSpinner
component - #138, #141
💅 Changes
@cmsgov/design-system-core
- Bumped
react
andreact-dom
to15.6.2
- #153
(We'll add support forv16.x
very soon, after a little more testing).
@cmsgov/design-system-support
- Bumped
uswds
package to1.3.1
- #145
Sketch file - #142
- Renamed file to make more sense with how Sketch Libraries work
- Reorganized text styles
- Updated color values
- Added additional button component variations
- Added "small" body text style
- Fixed resizing constraints of Dropdown, Checkbox, and Radio buttons
- Add "big" variation of "disabled" button
🛠 Fixed
@cmsgov/design-system-core
- Fixed checkbox/radio behavior caused by negative margin: The Choice input was hidden by setting its
margin-left
property to-100%
. This caused issues when two choices were side by side. #143
📦 Internal
- Added ability to preview site packages, AKA "themes", in the context of the documentation - #139
1.1.0
🚀 Added
Core
- A Sketch file with design system's components and shared styles is now available in the
design-assets
directory of the repo. - New component:
Spinner
(#126)
Currently considered in Alpha status, so expect further guidance and possibly breaking changes for this component.
Support
- New mixin:
inline-icon
💅 Changes
Core
- Updated the visual design of the
Alert
component, reflecting the same visual changes coming down the US Web Design Standards pipeline. (#128)
1.0.1
1.0.0
This is the first official release of the CMS Design System. Future releases will conform to the Semantic Versioning as outlined here.
🚀 Added
- Added a
flex-wrap
utility class - Added a
$ds-include-base-html-rulesets: true
Sass variable which, when set tofalse
, will disable the base HTML selectors. (Onlya {...}
right now — see below) - Added
SkipNav
CSS and React component
🚨 Breaking changes
- Added styling to base
<a>
elements (More info here: #106) - Renamed
ds-c-vertical-nav__link
tods-c-vertical-nav__label
to more accurately represent its functionality — it can be used on more than just<a>
tags. (#116) - Changed both the default font and image paths so that their directories are now expected to live in the same directory as the CSS's directory. This is actually what the U.S. WDS does, so it's a reversion of customizations we made early on. The expected file structure is now:
To restore the previous behavior, you could define the following variables before the line where you
├── Assets directory/ ├── css/ # The CSS directory can be named whatever you want. ├── images/ └── fonts/
@import
the design system's Sass file:$font-path: 'fonts'; $image-path: 'images'; @import '@cmsgov/design-system-core';
- Moved the
fonts
andimages
directories to the root ofpackages/core
, moving them out of thedist
andsrc
directories.
💅 Changes
-
ds-u[-*]-justify-content*
,ds-u[-*]-align-items*
, andds-u[-*]-flex-wrap*
now use!important
s when setting properties. -
ds-display
andds-title
will now drop down to the font-size ofds-h1
on small screens. This is similar to what USWDS does and saves the trouble of doing this yourself during implementation, which you'd likely need to do. -
When a Vertical Nav item includes a sub-navigation menu, the user can now toggle the sub-nav by clicking anywhere on the label. Before, they had to click the arrow icon, which was pretty annoying. Below is a visual comparison of the functionality:
Before After
🛠 Fixed
- Fixed unexpected flexbox grid column behavior caused by the default
min-width
value of flexbox items being set toauto
. This could result in a grid column overflowing the viewport on the x-axis, rather than resizing to fit within the viewport as you'd expect. For more context, check out this article.
1.0.0-rc.2
🚀 Added
- Flexbox utility classes
display
utilities now supportflex
as a valuemargin
utilities now supportauto
as a value@cmsgov/design-system-support
package. See note about this in the "Breaking changes" section below.@cmsgov/design-system-layout
package with a ✨ responsive flexbox grid ✨
- Added "Documentation page" pattern, based on the one by USWDS.
🚨 Breaking changes
- Moved Sass mixins and variables to separate NPM package:
@cmsgov/design-system-support
— These are still included in thecore
package and this change shouldn't break anything unless you were importing the individual settings or mixins files.
💅 Changes
- Removed
bourbon
dependency
📦 Internal
Lots of improvements to the internal tooling and documentation site. Some highlights:
- HTML examples are now rendered in a sandboxed iframe
- Added the ability for some examples to include toggles, allowing you to preview the example at various breakpoints
- Added
GOVERNANCE.md
1.0.0-rc.1
This is the first release candidate — meaning we feel confident that the components within it which are being recommended have no known bugs. Each component now has its own status (alpha, beta, or recommended). The majority of the components are now considered "recommended". This is consistent with their status in the U.S. Web Design Standards, which is where most came from.
🚀 Added
💅 Changes
1.0.0-alpha.11
1.0.0-alpha.10
Documentation 👉
🚀 Added
- New utility classes:
.ds-u-text-decoration--underline
.ds-u-text-decoration--none
- Added
.ds-u-color--primary-darkest
utility class
🚨 Breaking changes
- Removed
.ds-u-font-weight--light
- Removed the "Open Sans - Light" font file. This reduces page weight by
11.16kB
.
💅 Changes
- The
font-weight
of.ds-title
and.ds-text--lead
are now set tonormal
. Previously they were set to "light".
- Change buttons to be same height as text fields
- Added a border to Alert components
🛠 Fixed
- Update USWDS to 1.2.0-rc1, resolving an issue where installing the design system NPM package was also installing a bunch of unnecessary dependencies used by the USWDS
- Alignment of checkbox/radio fields when text wraps
📃 Documentation
- Added guidance for grid layout and internationalization