@spectrum-css/icon
The icons component contains the CSS for UI and workflow icons.
The Spectrum CSS icon component
@spectrum-css/iconThe icons component contains the CSS for UI and workflow icons.
📝 #4218 2df53f8 Thanks @castastrophe!
Ensure accurate exports are present for each component. Specifically, adding themes/* assets where present and removingindex-*.css exports where those assets do not exist.
📝 205182b Thanks @castastrophe!
Minified and gzipped outputs available for all compiled CSS assets.
📝 #3541 1a3245c Thanks @castastrophe!
Dependency alignment across the project.
1a3245c]:
📝 #3534 68e0057 Thanks @castastrophe!
Fixes a bug in the content of the dist/index-theme.css file.
Expected index-theme.css to include the component selectors with component-level custom properties mapped to the --system prefixed ones in order to allow a component to support various contexts.
Expected output example for the index-theme.css:
.spectrum-ActionButton {
--spectrum-actionbutton-background-color-default: var(--system-action-button-background-color-default);
--spectrum-actionbutton-background-color-hover: var(--system-action-button-background-color-hover);📝 #2786 6c19fcf Thanks @pfulton!
This major update creates a bridge between the Spectrum 1 (S1) and Spectrum 2 (S2) designs, dubbed "Spectrum 2 Foundations". These do NOT reflect a fully migrated S2 component. This approach allows consumers to swap the appearance of their components between S1, Express, and S2 by leveraging a "system" layer that remaps the necessary component-level tokens to the appropriate token dataset.
For these components to appear S2, you must load the assets with the @spectrum-css/tokens at v16 or higher.
For S1 or Express, load assets with the @spectrum-css/tokens at v14.x or v15.x.
If you are looking to implement a fully S2 design, please explore the next tag releases instead of using this foundations release. This release is used in Spectrum Web Components 1.x.
The metadata folder containing the mods.md and metadata.json assets has been removed from source. To find information about the components including what selectors, modifiers, and passthroughs are used, please see the dist/metadata.json asset shipped with every component containing CSS.
The index-vars.css asset has been removed in this release as it was previously deprecated and is no longer maintained. Please use the index.css or index-base.css
If you are rendering components and need only the S2 Foundations styles, you can make use of the index.css asset which contains all the base styles plus the system mappings for S2 Foundations.
If you are using this version to publish only an S1 or Express component, you can use the index-base.css plus the desired themes/(spectrum|express).css file.
To render a component that can be easily swapped between the S2 Foundations, S1, or Express contexts, load index-base.css with the index-theme.css file and leverage the appropriate context classes (.spectrum--legacy for S1 and .spectrum--express for Express).
📝 #3522 7a47c22 Thanks @castastrophe!
Peer dependency for @spectrum-css/tokens updated to include v15 as well as v14.
Updated dependencies [7a47c22]:
📝 #3502 562396e Thanks @castastrophe!
themes directories with the empty spectrum.css and express.com files as well as removing the following empty or unnecessary exports:index-base.cssindex-theme.cssthemes/spectrum.cssthemes/express.cssc8194b0]:
📝 #3369 9c49505 Thanks @castastrophe!
📝 #3107 83d5a17 Thanks @castastrophe!
Incorporate glob export for the dist directory in all component packages as well as glob markdown exports (to include both CHANGELOG and READMEs).
Sort keys in the package.json assets.
📝 #3045 5d6e03f Thanks @castastrophe!
📝 #2974 fd00178 Thanks @jawinn!
📝 #2677 d83200c Thanks @castastrophe!
📝 #2616 7f45ea9 Thanks @castastrophe!
Output for all component CSS files is now being run through a lightweight optimizer (cssnano) which significantly reduces unnecessary whitespace. These changes reduce file size but should not have any impact on the rendering of the component. By removing unnecessary whitespace from var functions, we are making it easier to effectively minify our provided CSS assets.
7f45ea9]:🗓 2024-04-18 • 📝 Commits
🗓 2024-03-07 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2024-02-26 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2024-02-15 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2024-02-12 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2024-02-06
Note: Version bump only for package @spectrum-css/icon
🗓 2024-02-05 • 📝 Commits
Additionally:
Migrates Icon CSS from using DNA/vars tokens to Spectrum tokens. Refactors UI Icons to be a little cleaner and not need placeholders.
Icons now change the value of the property "--spectrum-icon-size" to set their width and height. They also have three additional mods available for setting the size (both width and height) or the individual width and height.
refactor(icon): remove legacy xvar css and plugin for combined icons
Remove 'xvar' and 'x--' code within UI icon CSS, along with the build plugins that were used only for this. This was only only needed previously when the build did not allow 'var()' and '--property' here.
Simplify and better document code used for combined UI icons and the medium/large platform scale. Remove old browser support here that is no longer needed with the browsers and features that are currently supported by the library. The old fallback to set display inline was pre Firefox version 56 [2017].
refactor(icon): remove gripper icon classes
Removing the gripper icon classes as they were incorrect and not used, and there are no tokens defined yet to set the actual classes to.
The gripper icon classes used previously were wrong in several ways. For one, they were using '100' size naming in the classes which are not currently used or displayed. These icons are without the number size. The old alias values being applied to them also looked incorrect when looking at the widths, and the CSS was swapping width for height.
That there is no size applied to these icons was obfuscated by the fact that the attribute width="10" is being applied to icons in Storybook.
Note: SWC is currently showing these icons with workflow sizing. These gripper icons do not have size tokens defined yet, but they may be added in the future "as they are needed"; when these icons start being used.
Cover the various types of icons in a Chromatic only story. Covers different icon sets, sizes, and color in the VRTs.
Make sure we always have custom properties that contains the width and height, that we can rely upon for CSS calculations. Regardless of whether the individual dimensions are specified or just the size is specified (that applies to both dimensions).
The icons in Storybook were adding an inline "width" attribute set to 10, which was previously obfuscating issues with sizing. Removes this attribute and leaves sizing up to CSS.
Added extra small workflow icon size. This has a token, is defined on some of the design redlines (Action Button), and is currently used in the Contextual Help component, as seen in the VRT run.
Recent updates to main make it no longer necessary to include empty theme files for the build to work.
Disables the size control for UI icons and adds each size number to the list of available UI icon names in Storybook.
UI icons have specific sizing and don't use the t-shirt sizing that Workflow icons do. They have more size numbers than there are t-shirt sizes, so they can't be directly mapped to each other. The different UI icons have different size numbers, so the size numbers can't use a single control.
Show all UI icons, including number sizing, in the Chromatic template. Condenses and improves some of the template logic.
Fix bug where the wrong icon was being rendered for workflow arrow and chevron. These are both icons with names that exist in both icon sets. There was logic being applied to the workflow icons that should have only have been applied to the UI icon.
chore(icon): manual version bump for beta release
feat(icon): add xxs size for migration and use renamed xxl property
Add XXS size to support existing SWC size. Uses the values from --spectrum-global-dimension-size-150, as used in SWC's custom icon CSS.
Included comments to note that xxs and xxl are planned to be deprecated in Spectrum 2, as they are not a part of the design spec.
chore(icon): set current beta versions already released
build(icon): minimum tokens version with xxl and xxs sizing
Update required tokens version with a minimum of the latest release that includes the new custom-vars for the xxl and xxs workflow icon sizes.
🗓 2024-01-29 • 📝 Commits
🗓 2024-01-16 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2023-12-12 • 📝 Commits
@spectrum-css/icon will no longer contain SVG assets; it will be a purely CSS package with all SVG assets migrated to the new @spectrum-css/ui-icons package.
NEW: @spectrum-css/ui-icons package for all SVG icons in the UI set.
🗓 2023-11-15 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2023-11-13 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2023-09-18 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2023-09-13 • 📝 Commits
🗓 2023-08-16 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2023-08-07 • 📝 Commits
@adobe/spectrum-tokensAdditionally:
🗓 2023-07-24 • 📝 Commits
🗓 2023-06-21 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2023-06-15 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2023-06-12 • 📝 Commits
🗓 2023-06-02 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2023-06-01 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2023-05-23 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2023-05-17 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2023-05-02 • 📝 Commits
🗓 2023-04-26 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2023-04-25 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2023-04-25 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2023-04-17 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2023-04-14 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2023-04-03 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2023-03-13 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2023-03-09 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2023-02-21 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2023-02-06 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2023-02-01 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2023-02-01 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2023-01-27 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2023-01-25 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2023-01-18 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2023-01-13 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2022-12-16 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2022-11-11 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2022-06-16 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2022-06-07 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2022-04-28 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2022-04-08 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2022-03-22 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2022-03-17 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2022-03-07 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2022-03-07 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2022-02-23 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2022-02-16 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2022-01-26 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2022-01-05 • 📝 Commits
🗓 2022-01-05 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2021-12-06 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2021-11-16 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2021-11-10 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2021-11-09 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2021-11-08 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2021-10-25 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2021-09-29 • 📝 Commits
🗓 2021-04-15 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2021-03-10 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2021-02-02 • 📝 Commits
🗓 2020-05-14 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2020-03-12 • 📝 Commits
🗓 2020-03-06 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2020-02-10 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2019-12-14 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2019-11-08 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2019-11-07 • 📝 Commits
Note: Version bump only for package @spectrum-css/icon
🗓 2019-10-08