Skip to content

Conversation

@MisRob
Copy link
Member

@MisRob MisRob commented Nov 20, 2025

Description

  • Fixes internal visually hidden style (KCard example here + here) not taking effect in KDS components when used from an application

    • By moving the style from documentation styles to library styles, and adding a new installation step to register library styles in applications
  • As a side effect, above also exposes the .visuallyhidden class to be used for any component, not just KDS.

  • Allows KTextbox label to be passed via slot and adds documentation on how to achieve visually hidden label

  • Also has few maintenance commits for related documentation and test suite

Issue addressed

Steps to test

Changelog

in KDS components when used from an application.

By moving the style from documentation styles
to library styles, and adding a new installation
step to register library styles.

This also exposes the class to be used
for any component, not just KDS.

Fixes learningequality#1163
@github-actions
Copy link
Contributor

github-actions bot commented Nov 20, 2025

Percy Visual Test Results

Percy Dashboard: View Detailed Report

Environment:

  • Node.js Version: 18.x
  • OS: Ubuntu-latest

Instructions for Reviewers:

  • Click on the Percy Dashboard link to view detailed visual diffs.
  • Review the visual changes highlighted in the report.
  • Approve or request changes based on the visual differences.

@focus="emitFocus"
@blur="emitBlur"
>
<!--@slot Label. Alternative to the label prop. -->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why the description for the label isn't showing up in the docs?

Image

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. I placed the comment wrongly. It needs to be right above the slot itself. Fixed.

Screenshot from 2025-11-24 16-24-20

Copy link
Member

@akolson akolson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @MisRob. I left a comment about the docs

Copy link
Member

@akolson akolson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. Thanks @MisRob

@MisRob MisRob merged commit 8b6c822 into learningequality:develop Nov 25, 2025
11 checks passed
learning-equality-bot bot pushed a commit that referenced this pull request Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

TODO: needs review Waiting for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[KTextbox]: Allow label to be passed via slot Investigate why visuallyhidden class doesn't take effect in Studio

2 participants