@fylgja/badge
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -9,2 +9,9 @@ # Changelog | ||
## [1.1.0] - 2023-01-30 | ||
### Added | ||
- support for `@layer` in components scope | ||
### Removed | ||
- Nowrap to allow normal text flow | ||
## [1.0.1] - 2022-06-05 | ||
@@ -11,0 +18,0 @@ ### Added |
{ | ||
"name": "@fylgja/badge", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "Badges component serves as a small blocks to indicate notifications. Or to highlight an item", | ||
@@ -23,7 +23,7 @@ "homepage": "https://fylgja.dev/", | ||
"scripts": { | ||
"build": "npx sass badge.scss badge.css --no-source-map -s compressed -I node_modules" | ||
"build": "npx sass --no-source-map -s compressed -I node_modules src:./" | ||
}, | ||
"dependencies": { | ||
"@fylgja/theme": "^1.0.0" | ||
"@fylgja/theme": "^1.1.0" | ||
} | ||
} |
@@ -22,2 +22,13 @@ # Fylgja - Badge | ||
### `@layer` support | ||
If you need support for `@layer`, | ||
use the following import; | ||
```scss | ||
@use "@fylgja/badge" with ($enable-badge-layer: true); | ||
// Or via PostCSS import | ||
@import "@fylgja/badge/layer"; | ||
``` | ||
## How to use | ||
@@ -65,2 +76,8 @@ | ||
```scss | ||
$enable-badge-addon: true !default; | ||
$enable-badge-theme: true !default; | ||
$enable-badge-layer: false !default; | ||
$badge-layer-name: components !default; | ||
$badge-padding: 0.125em 0.75em !default; | ||
@@ -67,0 +84,0 @@ $badge-radius: 0.375em !default; |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
7362
9
7
88
Updated@fylgja/theme@^1.1.0