Skip to content

Commit 70816d8

Browse files
yordan-stuicontent
andauthored
chore: update changelog (#265)
Co-authored-by: Content Teams SRV <87473071+uicontent@users.noreply.github.com>
1 parent 19f5504 commit 70816d8

File tree

4 files changed

+32
-23
lines changed

4 files changed

+32
-23
lines changed

packages/atlas-core/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## [Unreleased]
88

9+
### Changed
10+
11+
- Moved .sr-only from bootstrap to base
12+
913
### Fixed
1014

1115
- We fixed an issue with sidebar menu not overlaying some elements in modern client.

packages/atlas-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "atlas-core",
33
"moduleName": "Atlas Core",
4-
"version": "4.1.4",
4+
"version": "4.2.0",
55
"license": "Apache-2.0",
66
"copyright": "© Mendix Technology BV 2024. All rights reserved.",
77
"repository": {

packages/atlas/src/themesource/atlas_core/web/core/_legacy/bootstrap/_bootstrap.scss

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,25 +1139,6 @@
11391139
border: 0;
11401140
border-top: 1px solid #eee;
11411141
}
1142-
.sr-only {
1143-
position: absolute;
1144-
width: 1px;
1145-
height: 1px;
1146-
padding: 0;
1147-
margin: -1px;
1148-
overflow: hidden;
1149-
clip: rect(0, 0, 0, 0);
1150-
border: 0;
1151-
}
1152-
.sr-only-focusable:active,
1153-
.sr-only-focusable:focus {
1154-
position: static;
1155-
width: auto;
1156-
height: auto;
1157-
margin: 0;
1158-
overflow: visible;
1159-
clip: auto;
1160-
}
11611142
[role="button"] {
11621143
cursor: pointer;
11631144
}
@@ -2223,9 +2204,6 @@
22232204
.has-feedback label ~ .form-control-feedback {
22242205
top: 25px;
22252206
}
2226-
.has-feedback label.sr-only ~ .form-control-feedback {
2227-
top: 0;
2228-
}
22292207
.help-block {
22302208
display: block;
22312209
margin-top: 5px;

packages/atlas/src/themesource/atlas_core/web/core/base/_base.scss

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,33 @@
7272
box-shadow: none;
7373
}
7474

75+
// Accessibility helpers:
76+
// .sr-only visually hides elements but keeps them accessible to screen readers.
77+
.sr-only {
78+
position: absolute;
79+
width: 1px;
80+
height: 1px;
81+
padding: 0;
82+
margin: -1px;
83+
overflow: hidden;
84+
clip-path: inset(50%);
85+
border: 0;
86+
}
87+
// .sr-only-focusable makes hidden elements visible when focused (keyboard navigation).
88+
.sr-only-focusable:active,
89+
.sr-only-focusable:focus {
90+
position: static;
91+
width: auto;
92+
height: auto;
93+
margin: 0;
94+
overflow: visible;
95+
clip-path: none;
96+
}
97+
// .has-feedback label.sr-only ~ .form-control-feedback positions feedback for screen reader-only labels.
98+
.has-feedback label.sr-only ~ .form-control-feedback {
99+
top: 0;
100+
}
101+
75102
.mx-underlay {
76103
position: fixed;
77104
top: 0;

0 commit comments

Comments
 (0)