Skip to content

Commit f90a04c

Browse files
committed
provide better variables for class name prefixes
1 parent c41cd62 commit f90a04c

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
1515
- `<Accordion />`, `<AccordionItem />`
1616
- `whitespaceSize` property to define how much whitespace is used on top and bottom inside the header and content of an accordion item.
1717
- `separationSize` property defines how much space is used for the separation between an accordion item and the next one.
18+
- class name prefixes are now available by variables with more readable names:
19+
- BlueprintJS: `$prefix-blueprintjs` (current value is `bp5`)
20+
- Carbon Design System: `$prefix-carbon` (current value is `cds`)
21+
- eccenca GUI elements: `$prefix-eccgui` (current value is `eccgui`)
1822

1923
### Fixed
2024

src/index.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
// load blueprintjs components
2323
@import "./includes/blueprintjs/components";
2424

25+
// set more readable variable for prefix
26+
$prefix-blueprintjs: $ns;
27+
2528
// -- Carbon Elements ----------------------------------------------------------
2629

2730
/*
@@ -41,11 +44,17 @@
4144
// load carbon components
4245
@import "./includes/carbon-components/components";
4346

47+
// set more readable variable for prefix
48+
$prefix-carbon: $prefix;
49+
4450
// == Load basic components styles =============================================
4551

4652
@import "./components";
4753
@import "./extensions/codemirror/codemirror";
4854

55+
// set more readable variable for prefix
56+
$prefix-eccgui: $eccgui;
57+
4958
// == load tweaks ==============================================================
5059

5160
@import "./shame";

0 commit comments

Comments
 (0)