Skip to content

Commit e739854

Browse files
committed
refactor: add border color animation on focus
1 parent 4bf4e35 commit e739854

File tree

9 files changed

+24
-13
lines changed

9 files changed

+24
-13
lines changed

docs/content/components/alerts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ Alerts use local CSS variables on `.alert` for enhanced real-time customization.
228228

229229
### SASS mixin
230230

231-
{{< deprecated-in "4.3.0" >}}
231+
{{< deprecated-in "5.0.0" >}}
232232

233233
Used in combination with `$alert-variants` to create contextual modifier classes for our alerts.
234234

docs/content/components/list-group.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ List groups use local CSS variables on `.list-group` for enhanced real-time cust
489489

490490
### SASS mixins
491491

492-
{{< deprecated-in "4.3.0" >}}
492+
{{< deprecated-in "5.0.0" >}}
493493

494494
Used in combination with `$theme-colors` to generate the [contextual variant classes](#contextual-classes) for `.list-group-item`s.
495495

docs/content/customize/color-modes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: docs
33
title: Color modes
4-
description: CoreUI now supports color modes, or themes, as of v4.3.0. Explore our default light color mode and the new dark mode, or create your own using our styles as your template.
4+
description: CoreUI now supports color modes, or themes, as of v5.0.0. Explore our default light color mode and the new dark mode, or create your own using our styles as your template.
55
group: customize
66
toc: true
77
added: "5.3"
@@ -13,7 +13,7 @@ added: "5.3"
1313

1414
## Dark mode
1515

16-
**CoreUI for Bootstrap now supports color modes, starting with dark mode!** With v4.3.0 you can implement your own color mode toggler (see below for an example from CoreUI for Bootstrap's docs) and apply the different color modes as you see fit. We support a light mode (default) and now dark mode. Color modes can be toggled globally on the `<html>` element, or on specific components and elements, thanks to the `data-coreui-theme` attribute.
16+
**CoreUI for Bootstrap now supports color modes, starting with dark mode!** With v5.0.0 you can implement your own color mode toggler (see below for an example from CoreUI for Bootstrap's docs) and apply the different color modes as you see fit. We support a light mode (default) and now dark mode. Color modes can be toggled globally on the `<html>` element, or on specific components and elements, thanks to the `data-coreui-theme` attribute.
1717

1818
Alternatively, you can also switch to a media query implementation thanks to our color mode mixin—see [the usage section for details](#building-with-sass). Heads up though—this eliminates your ability to change themes on a per-component basis as shown below.
1919

docs/content/customize/color.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ toc: true
1111

1212
## Colors
1313

14-
{{< added-in "4.3.0" >}}
14+
{{< added-in "5.0.0" >}}
1515

16-
Bootstrap's color palette has continued to expand and become more nuanced in v4.3.0. We've added new variables for `secondary` and `tertiary` text and background colors, plus `{color}-bg-subtle`, `{color}-border-subtle`, and `{color}-text-emphasis` for our theme colors. These new colors are available through Sass and CSS variables (but not our color maps or utility classes) with the express goal of making it easier to customize across multiple colors modes like light and dark. These new variables are globally set on `:root` and are adapted for our new dark color mode while our original theme colors remain unchanged.
16+
Bootstrap's color palette has continued to expand and become more nuanced in v5.0.0. We've added new variables for `secondary` and `tertiary` text and background colors, plus `{color}-bg-subtle`, `{color}-border-subtle`, and `{color}-text-emphasis` for our theme colors. These new colors are available through Sass and CSS variables (but not our color maps or utility classes) with the express goal of making it easier to customize across multiple colors modes like light and dark. These new variables are globally set on `:root` and are adapted for our new dark color mode while our original theme colors remain unchanged.
1717

1818
Colors ending in `-rgb` provide the `red, green, blue` values for use in `rgb()` and `rgba()` color modes. For example, `rgba(var(--cui-secondary-bg-rgb), .5)`.
1919

docs/content/customize/css-variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ a {
7575

7676
## Focus variables
7777

78-
{{< added-in "4.3.0" >}}
78+
{{< added-in "5.0.0" >}}
7979

8080
Bootstrap provides custom `:focus` styles using a combination of Sass and CSS variables that can be optionally added to specific components and elements. We do not yet globally override all `:focus` styles.
8181

docs/content/migration.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
---
22
layout: docs
3-
title: Migrating to v4
4-
description: Track and review changes to the CoreUI for Bootstrap source files, documentation, and components to help you migrate from v3 to v4.
3+
title: Migrating to v5
4+
description: Track and review changes to the CoreUI for Bootstrap source files, documentation, and components to help you migrate from v4 to v5.
55
group: migration
66
aliases: "/migration/"
7-
aliases: "/4.0/migration/"
87
toc: true
98
---
109

11-
## v4.3.0 (v4.6.0 PRO)
10+
## v5.0.0-alpha.0
1211

1312
### CSS variables
1413

@@ -113,7 +112,7 @@ Learn more by reading the new [color modes documentation]({{< docsref "/customiz
113112

114113
### Progress bars
115114

116-
The markup for [progress bars]({{< docsref "/components/progress" >}}) has been updated in v5.3.0. Due to the placement of `role` and various `aria-` attributes on the inner `.progress-bar` element, **some screen readers were not announcing zero value progress bars**. Now, `role="progressbar"` and the relevant `aria-*` attributes are on the outer `.progress` element, leaving the `.progress-bar` purely for the visual presentation of the bar and optional label.
115+
The markup for [progress bars]({{< docsref "/components/progress" >}}) has been updated in v5.0.0. Due to the placement of `role` and various `aria-` attributes on the inner `.progress-bar` element, **some screen readers were not announcing zero value progress bars**. Now, `role="progressbar"` and the relevant `aria-*` attributes are on the outer `.progress` element, leaving the `.progress-bar` purely for the visual presentation of the bar and optional label.
117116

118117
While we recommend adopting the new markup for improved compatibility with all screen readers, note that the legacy progress bar structure will continue to work as before.
119118

@@ -175,7 +174,7 @@ We've also introduced a new `.progress-stacked` class to more logically wrap [mu
175174

176175
- <span class="badge text-warning-emphasis bg-warning-subtle">Deprecated</span> `.text-muted` will be replaced by `.text-body-secondary` in v6.
177176

178-
With the addition of the expanded theme colors and variables, the `.text-muted` variables and utility have been deprecated with v5.3.0. Its default value has also been reassigned to the new `--cui-secondary-color` CSS variable to better support color modes. It will be removed in v6.0.0.
177+
With the addition of the expanded theme colors and variables, the `.text-muted` variables and utility have been deprecated with v5.0.0. Its default value has also been reassigned to the new `--cui-secondary-color` CSS variable to better support color modes. It will be removed in v6.0.0.
179178

180179
- Adds new `.overflow-x`, `.overflow-y`, and several `.object-fit-*` utilities. _The object-fit property is used to specify how an `<img>` or `<video>` should be resized to fit its container, giving us a responsive alternative to using `background-image` for a resizable fill/fit image._
181180

scss/_date-picker.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@
7878
}
7979
}
8080

81+
.date-picker & {
82+
@include transition($input-transition);
83+
}
84+
8185
.date-picker.disabled & {
8286
--#{$prefix}date-picker-border-color: var(--#{$prefix}date-picker-disabled-border-color);
8387
background-color: var(--#{$prefix}date-picker-disabled-bg);

scss/_time-picker.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@
7878
}
7979
}
8080

81+
.time-picker & {
82+
@include transition($input-transition);
83+
}
84+
8185
.time-picker.disabled & {
8286
background-color: var(--#{$prefix}time-picker-disabled-bg);
8387
border-color: var(--#{$prefix}time-picker-disabled-border-color);

scss/forms/_form-multi-select.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ select.form-multi-select {
134134
border: var(--#{$prefix}form-multi-select-border-width) solid var(--#{$prefix}form-multi-select-border-color);
135135
@include border-radius(var(--#{$prefix}form-multi-select-border-radius));
136136

137+
.form-multi-select & {
138+
@include transition($input-transition);
139+
}
140+
137141
.form-multi-select.disabled & {
138142
color: var(--#{$prefix}form-multi-select-disabled-color);
139143
background-color: var(--#{$prefix}form-multi-select-disabled-bg);

0 commit comments

Comments
 (0)