Skip to content

Commit c187b59

Browse files
committed
fix: rename wrong CSS Variables names
1 parent 9091dcf commit c187b59

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

docs/content/4.0/content/tables.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,10 @@ Highlight a table row or cell by adding a `.table-active` class.
212212

213213
For the accented tables ([striped rows](#striped-rows), [hoverable rows](#hoverable-rows), and [active tables](#active-tables)), we used some techniques to make these effects work for all our [table variants](#variants):
214214

215-
- We start by setting the background of a table cell with the `--coreui-table-bg` custom property. All table variants then set that custom property to colorize the table cells. This way, we don't get into trouble if semi-transparent colors are used as table backgrounds.
216-
- Then we add a gradient on the table cells with `background-image: linear-gradient(var(--coreui-table-accent-bg), var(--coreui-table-accent-bg));` to layer on top of any specified `background-color`. Since `--coreui-table-accent-bg` is transparent by default, we have an invisible transparent linear gradient by default.
217-
- When either `.table-striped`, `.table-hover` or `.table-active` classes are added, the `--coreui-table-accent-bg` is set to a semitransparent color to colorize the background.
218-
- For each table variant, we generate a `--coreui-table-accent-bg` color with the highest contrast depending on that color. For example, the accent color for `.table-primary` is darker while `.table-dark` has a lighter accent color.
215+
- We start by setting the background of a table cell with the `--cui-table-bg` custom property. All table variants then set that custom property to colorize the table cells. This way, we don't get into trouble if semi-transparent colors are used as table backgrounds.
216+
- Then we add a gradient on the table cells with `background-image: linear-gradient(var(--cui-table-accent-bg), var(--cui-table-accent-bg));` to layer on top of any specified `background-color`. Since `--cui-table-accent-bg` is transparent by default, we have an invisible transparent linear gradient by default.
217+
- When either `.table-striped`, `.table-hover` or `.table-active` classes are added, the `--cui-table-accent-bg` is set to a semitransparent color to colorize the background.
218+
- For each table variant, we generate a `--cui-table-accent-bg` color with the highest contrast depending on that color. For example, the accent color for `.table-primary` is darker while `.table-dark` has a lighter accent color.
219219
- Text and border colors are generated the same way, and their colors are inherited by default.
220220

221221
Behind the scenes it looks like this:

docs/content/4.0/customize/css-variables.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ CSS variables offer similar flexibility to Sass's variables, but without the nee
4747

4848
```css
4949
body {
50-
font: 1rem/1.5 var(--coreui-font-sans-serif);
50+
font: 1rem/1.5 var(--cui-font-sans-serif);
5151
}
5252
a {
53-
color: var(--coreui-blue);
53+
color: var(--cui-blue);
5454
}
5555
```

docs/content/4.0/migration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Badges were overhauled to better differentiate themselves from buttons and to be
9393
#### Breadcrumbs
9494

9595
- Simplified the default appearance of breadcrumbs by removing `padding`, `background-color`, and `border-radius`.
96-
- Added new CSS custom property `--coreui-breadcrumb-divider` for easy customization without needing to recompile CSS.
96+
- Added new CSS custom property `--cui-breadcrumb-divider` for easy customization without needing to recompile CSS.
9797

9898
#### Buttons
9999

docs/content/4.0/utilities/colors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Sometimes contextual classes cannot be applied due to the specificity of another
3535

3636
In addition to the following Sass functionality, consider reading about our included [CSS custom properties]({{< docsref "/customize/css-variables" >}}) (aka CSS variables) for colors and more.
3737

38-
Do you need a gradient in your custom CSS? Just add `background-image: var(--coreui-gradient);`.
38+
Do you need a gradient in your custom CSS? Just add `background-image: var(--cui-gradient);`.
3939
### Variables
4040

4141
Most `color` utilities are generated by our theme colors, reassigned from our generic color palette variables.

js/src/dropdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ class Dropdown extends BaseComponent {
296296
}
297297

298298
// We need to trim the value because custom properties can also include spaces
299-
const isEnd = getComputedStyle(this._menu).getPropertyValue('--coreui-position').trim() === 'end'
299+
const isEnd = getComputedStyle(this._menu).getPropertyValue('--cui-position').trim() === 'end'
300300

301301
if (parentDropdown.classList.contains(CLASS_NAME_DROPUP)) {
302302
return isEnd ? PLACEMENT_TOPEND : PLACEMENT_TOP

0 commit comments

Comments
 (0)