Skip to content

feat(utilities): add border-*-ai utilities#1853

Draft
spike-rabbit wants to merge 1 commit intomainfrom
feat/ai-border
Draft

feat(utilities): add border-*-ai utilities#1853
spike-rabbit wants to merge 1 commit intomainfrom
feat/ai-border

Conversation

@spike-rabbit
Copy link
Copy Markdown
Member

@spike-rabbit spike-rabbit commented Apr 10, 2026

In order to highlight AI related content, we need a gradient border. Since CSS borders do not support gradients we need this workaround.

This border is supposed to be only used on cards and badges, but with those utilities they could be used on every container.


Documentation.
Examples.
Dashboards Demo.
Playwright report.

Coverage Reports:

Code Coverage

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces new AI gradient border utilities and an accompanying example component. The changes include a SCSS mixin for the gradient border effect, utility classes, and E2E tests with snapshots. Feedback focuses on ensuring cross-browser compatibility for CSS mask properties and adhering to UX writing guidelines regarding sentence case capitalization and the use of telegram style for UI text.

Comment thread projects/element-theme/src/styles/bootstrap/_utilities.scss
Comment thread src/app/examples/ai-border/ai-border.html Outdated
Comment thread src/app/examples/ai-border/ai-border.html Outdated
Comment thread src/app/examples/ai-border/ai-border.html Outdated
In order to highlight AI related content, we need a gradient border.
Since CSS borders do not support gradients we need this workaround.

This border is supposed to be only used on cards and badges,
but with those utilities they could be used on every container.

## AI gradient borders

Add a 1px gradient border to any element using the AI border utility classes.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@spike-rabbit the termn AI is a bit confusing to me, can you provide more context e.g. when to use?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants