Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/components/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@labkey/components",
"version": "7.40.0",
"version": "7.40.1",
"description": "Components, models, actions, and utility functions for LabKey applications and pages",
"sideEffects": false,
"files": [
Expand Down
7 changes: 7 additions & 0 deletions packages/components/releaseNotes/components.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# @labkey/components
Components, models, actions, and utility functions for LabKey applications and pages

### version 7.40.1
*Released*: 2 June 2026
- More misc. accessibility improvements
- Fix empty buttons for `ExpandableContainer` and `RemoveEntityButton`
- Fix color contrast for `.name-id-setting__prefix-example`, `.container-nav` and `.lk-version-nav`
- Fix color contrast for `.sr-only` to avoid false positives from WAVE

### version 7.40.0
*Released*: 28 May 2026
- Calculated Column Assistant
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ export const ExpandableContainer: FC<Props> = memo(props => {
})}
onClick={hasOnClick || isExpandable ? handleClick : undefined}
type="button"
/>
>
<span className="sr-only">{visible ? 'Collapse' : 'Expand'}</span>
</button>
</div>
<div className="container-expandable-heading">
{clause}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ exports[`<ExpandableContainer/> custom props 1`] = `
<button
class="clickable-text fa fa-chevron-down"
type="button"
/>
>
<span
class="sr-only"
>
Collapse
</span>
</button>
</div>
<div
class="container-expandable-heading"
Expand Down Expand Up @@ -66,7 +72,13 @@ exports[`<ExpandableContainer/> default props 1`] = `
<button
class="clickable-text fa fa-chevron-right"
type="button"
/>
>
<span
class="sr-only"
>
Expand
</span>
</button>
</div>
<div
class="container-expandable-heading"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* limitations under the License.
*/
import React from 'react';
import { Icon } from '../../Icon';

interface RemoveEntityButtonProps {
entity?: string;
Expand All @@ -29,12 +30,12 @@ export class RemoveEntityButton extends React.Component<RemoveEntityButtonProps,

render() {
const { entity, index, labelClass, onClick } = this.props;

const buttonText = entity ? ' Remove ' + entity + ' ' + (index || '') : '';
return (
<div className={labelClass}>
<button className="clickable-text container--action-button" onClick={onClick} type="button">
<i className="fa fa-times container--removal-icon" />
{entity ? ' Remove ' + entity + ' ' + (index || '') : ''}
<button aria-label={entity ? buttonText : 'Remove'} className="clickable-text container--action-button" onClick={onClick} type="button">
<span className="fa fa-times container--removal-icon" aria-hidden="true" />
{buttonText}
</button>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ exports[`ColorPickerInput allowRemove 1`] = `
class="color-picker__remove"
>
<button
aria-label="Remove"
class="clickable-text container--action-button"
type="button"
>
<i
<span
aria-hidden="true"
class="fa fa-times container--removal-icon"
/>
</button>
Expand Down
4 changes: 4 additions & 0 deletions packages/components/src/theme/form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@
border-bottom: 3px solid white
}
}
&.list-group-item.disabled {
background-color: $gray-shadow;
color: $text-color-light;
}
}


Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/theme/navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@

.container-nav {
padding: 10px 0 8px 10px;
color: $text-color-gray;
color: $text-muted;
position: relative;
}
.container-nav:before {
Expand All @@ -470,7 +470,7 @@

.lk-version-nav {
padding: 8px 0 8px 10px;
color: $text-color-gray;
color: $text-muted;
position: relative;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/theme/settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
.name-id-setting__prefix-example {
margin-top: 10px;
margin-left: 48px;
color: #999999;
color: $text-muted;
}

.name-id-setting__error {
Expand Down
6 changes: 6 additions & 0 deletions packages/components/src/theme/utils.scss
Original file line number Diff line number Diff line change
Expand Up @@ -197,3 +197,9 @@
.pointer {
cursor: pointer;
}

/** This is used to get around WAVE false-positives that flag the sr-only text as low contrast **/
.sr-only {
color: black;
background: white;
}
1 change: 1 addition & 0 deletions packages/components/src/theme/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ $badge-color: #D43F3A;
$blue-highlight: #2980B9;
$gray-no-highlight: $gray-lighten;
$blue-icon-background: #CCE5FF;
$gray-icon-background: #767676;

$blue-dark: #1e4f6f;
$text-color-gray: #9d9d9d;
Expand Down