Skip to content

Commit f035fd5

Browse files
authored
Merge changes from release26.6-SNAPSHOT through v7.40.1 (#2013)
* 7.41.1 - include changes from v7.40.1: #2011
1 parent bd2c463 commit f035fd5

12 files changed

Lines changed: 54 additions & 14 deletions

File tree

packages/components/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@labkey/components",
3-
"version": "7.41.0",
3+
"version": "7.41.1",
44
"description": "Components, models, actions, and utility functions for LabKey applications and pages",
55
"sideEffects": false,
66
"files": [

packages/components/releaseNotes/components.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
11
# @labkey/components
22
Components, models, actions, and utility functions for LabKey applications and pages
33

4+
### version 7.41.1
5+
*Released*: 3 June 2026
6+
- Merge from release26.6-SNAPSHOT to develop
7+
- includes changes from 7.40.1 #2011
8+
49
### version 7.41.0
510
*Released*: 1 June 2026
611
- GitHub Issue 903: Remove Cross-Container Sample and Data Class Import Feature
712

13+
### version 7.40.1
14+
*Released*: 2 June 2026
15+
- More misc. accessibility improvements
16+
- Fix empty buttons for `ExpandableContainer` and `RemoveEntityButton`
17+
- Fix color contrast for `.name-id-setting__prefix-example`, `.container-nav` and `.lk-version-nav`
18+
- Fix color contrast for `.sr-only` to avoid false positives from WAVE
19+
820
### version 7.40.0
921
*Released*: 28 May 2026
1022
- Calculated Column Assistant

packages/components/src/internal/components/ExpandableContainer.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ export const ExpandableContainer: FC<Props> = memo(props => {
108108
})}
109109
onClick={hasOnClick || isExpandable ? handleClick : undefined}
110110
type="button"
111-
/>
111+
>
112+
<span className="sr-only">{visible ? 'Collapse' : 'Expand'}</span>
113+
</button>
112114
</div>
113115
<div className="container-expandable-heading">
114116
{clause}

packages/components/src/internal/components/__snapshots__/ExpandableContainer.test.tsx.snap

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@ exports[`<ExpandableContainer/> custom props 1`] = `
2222
<button
2323
class="clickable-text fa fa-chevron-down"
2424
type="button"
25-
/>
25+
>
26+
<span
27+
class="sr-only"
28+
>
29+
Collapse
30+
</span>
31+
</button>
2632
</div>
2733
<div
2834
class="container-expandable-heading"
@@ -66,7 +72,13 @@ exports[`<ExpandableContainer/> default props 1`] = `
6672
<button
6773
class="clickable-text fa fa-chevron-right"
6874
type="button"
69-
/>
75+
>
76+
<span
77+
class="sr-only"
78+
>
79+
Expand
80+
</span>
81+
</button>
7082
</div>
7183
<div
7284
class="container-expandable-heading"

packages/components/src/internal/components/buttons/RemoveEntityButton.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* in any form or by any electronic or mechanical means without written permission from LabKey Corporation.
44
*/
55
import React from 'react';
6+
import { Icon } from '../../Icon';
67

78
interface RemoveEntityButtonProps {
89
entity?: string;
@@ -18,12 +19,12 @@ export class RemoveEntityButton extends React.Component<RemoveEntityButtonProps,
1819

1920
render() {
2021
const { entity, index, labelClass, onClick } = this.props;
21-
22+
const buttonText = entity ? ' Remove ' + entity + ' ' + (index || '') : '';
2223
return (
2324
<div className={labelClass}>
24-
<button className="clickable-text container--action-button" onClick={onClick} type="button">
25-
<i className="fa fa-times container--removal-icon" />
26-
{entity ? ' Remove ' + entity + ' ' + (index || '') : ''}
25+
<button aria-label={entity ? buttonText : 'Remove'} className="clickable-text container--action-button" onClick={onClick} type="button">
26+
<span className="fa fa-times container--removal-icon" aria-hidden="true" />
27+
{buttonText}
2728
</button>
2829
</div>
2930
);

packages/components/src/internal/components/forms/input/__snapshots__/ColorPickerInput.test.tsx.snap

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@ exports[`ColorPickerInput allowRemove 1`] = `
2222
class="color-picker__remove"
2323
>
2424
<button
25+
aria-label="Remove"
2526
class="clickable-text container--action-button"
2627
type="button"
2728
>
28-
<i
29+
<span
30+
aria-hidden="true"
2931
class="fa fa-times container--removal-icon"
3032
/>
3133
</button>

packages/components/src/theme/form.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@
146146
border-bottom: 3px solid white
147147
}
148148
}
149+
&.list-group-item.disabled {
150+
background-color: $gray-shadow;
151+
color: $text-color-light;
152+
}
149153
}
150154

151155

packages/components/src/theme/navbar.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@
446446

447447
.container-nav {
448448
padding: 10px 0 8px 10px;
449-
color: $text-color-gray;
449+
color: $text-muted;
450450
position: relative;
451451
}
452452
.container-nav:before {
@@ -470,7 +470,7 @@
470470

471471
.lk-version-nav {
472472
padding: 8px 0 8px 10px;
473-
color: $text-color-gray;
473+
color: $text-muted;
474474
position: relative;
475475
}
476476

packages/components/src/theme/settings.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
.name-id-setting__prefix-example {
2525
margin-top: 10px;
2626
margin-left: 48px;
27-
color: #999999;
27+
color: $text-muted;
2828
}
2929

3030
.name-id-setting__error {

0 commit comments

Comments
 (0)