@spectrum-css/actionbutton
Advanced tools
Comparing version 6.0.0 to 6.1.0
# Change Log | ||
## 6.1.0 | ||
### Minor Changes | ||
- [#2616](https://github.com/adobe/spectrum-css/pull/2616) [`7f45ea9`](https://github.com/adobe/spectrum-css/commit/7f45ea95d3d31addf29b0720de8623b0f3f0431d) Thanks [@castastrophe](https://github.com/castastrophe)! | ||
#### Build optmizations to support minification | ||
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. | ||
### Patch Changes | ||
- Updated peerDependencies [[`7f45ea9`](https://github.com/adobe/spectrum-css/commit/7f45ea95d3d31addf29b0720de8623b0f3f0431d)]: | ||
- @spectrum-css/icon@>=7 | ||
- @spectrum-css/tokens@>=14 | ||
All notable changes to this project will be documented in this file. | ||
@@ -4,0 +20,0 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. |
@@ -12,8 +12,9 @@ { | ||
".spectrum-ActionButton-hold", | ||
".spectrum-ActionButton-hold + .spectrum-ActionButton-icon, .spectrum-ActionButton-icon:only-child", | ||
".spectrum-ActionButton-hold + .spectrum-ActionButton-icon,\n.spectrum-ActionButton-icon:only-child", | ||
".spectrum-ActionButton-icon", | ||
".spectrum-ActionButton-label", | ||
".spectrum-ActionButton-label:empty", | ||
".spectrum-ActionButton.is-disabled,\n.spectrum-ActionButton:disabled", | ||
".spectrum-ActionButton.is-selected", | ||
".spectrum-ActionButton.is-selected .spectrum-ActionButton-icon, .spectrum-ActionButton.is-selected .spectrum-ActionButton-hold, .spectrum-ActionButton.is-selected .spectrum-ActionButton-label", | ||
".spectrum-ActionButton.is-selected .spectrum-ActionButton-hold,\n .spectrum-ActionButton.is-selected .spectrum-ActionButton-icon,\n .spectrum-ActionButton.is-selected .spectrum-ActionButton-label", | ||
".spectrum-ActionButton.is-selected.spectrum-ActionButton--emphasized", | ||
@@ -28,11 +29,9 @@ ".spectrum-ActionButton.spectrum-ActionButton--quiet", | ||
".spectrum-ActionButton::-moz-focus-inner", | ||
".spectrum-ActionButton::after", | ||
".spectrum-ActionButton:active", | ||
".spectrum-ActionButton:dir(rtl)", | ||
".spectrum-ActionButton:disabled, .spectrum-ActionButton.is-disabled", | ||
".spectrum-ActionButton:after", | ||
".spectrum-ActionButton:dir(rtl),\n[dir=\"rtl\"] .spectrum-ActionButton", | ||
".spectrum-ActionButton:focus", | ||
".spectrum-ActionButton:focus-visible", | ||
".spectrum-ActionButton:focus-visible::after", | ||
".spectrum-ActionButton:focus-visible:after", | ||
".spectrum-ActionButton:hover", | ||
"[dir=\"rtl\"] .spectrum-ActionButton", | ||
"a.spectrum-ActionButton" | ||
@@ -39,0 +38,0 @@ ], |
{ | ||
"name": "@spectrum-css/actionbutton", | ||
"version": "6.0.0", | ||
"version": "6.1.0", | ||
"description": "The Spectrum CSS action button component", | ||
@@ -17,5 +17,12 @@ "license": "Apache-2.0", | ||
"main": "dist/index.css", | ||
"files": [ | ||
"dist/*", | ||
"CHANGELOG.md", | ||
"package.json", | ||
"stories/template.js", | ||
"metadata/mods.md" | ||
], | ||
"peerDependencies": { | ||
"@spectrum-css/icon": ">=4", | ||
"@spectrum-css/tokens": ">=13" | ||
"@spectrum-css/icon": ">=7", | ||
"@spectrum-css/tokens": ">=14" | ||
}, | ||
@@ -30,6 +37,11 @@ "peerDependenciesMeta": { | ||
}, | ||
"keywords": [ | ||
"spectrum", | ||
"css", | ||
"design system", | ||
"adobe" | ||
], | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"gitHead": "ee96fec864d2f60be456b50964dacfa8d562d9b8" | ||
} | ||
} |
@@ -41,12 +41,3 @@ import { html } from "lit"; | ||
}) => { | ||
const { express } = globals; | ||
try { | ||
if (!express) import(/* webpackPrefetch: true */ "../themes/spectrum.css"); | ||
else import(/* webpackPrefetch: true */ "../themes/express.css"); | ||
} | ||
catch (e) { | ||
console.warn(e); | ||
} | ||
return html` | ||
@@ -53,0 +44,0 @@ <button |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
212099
12
2134