Skip to content

fix(dashboards-ng): do not clip focus-ring in footer#1895

Merged
chintankavathia merged 1 commit intomainfrom
fix/dashboards/fix-cut-focus-ring
Apr 20, 2026
Merged

fix(dashboards-ng): do not clip focus-ring in footer#1895
chintankavathia merged 1 commit intomainfrom
fix/dashboards/fix-cut-focus-ring

Conversation

@spike-rabbit
Copy link
Copy Markdown
Member

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

The footer / paddings were constructed wrong.
In general components in element do not have a build-in padding. Especially not on the block-end.
Those are consumer supplied. Exceptions are footer actions and inputs. This rule is violated by the si-dashboard which was having a padding-block-end leading to the actual footer not having padding-block-end and thus causing the focus border to be clipped.


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 adjusts the layout and spacing of the widget catalog and dashboard components by removing margin and padding classes from top-level containers and updating the footer padding in the widget catalog. I have no feedback to provide.

@spike-rabbit spike-rabbit force-pushed the fix/dashboards/fix-cut-focus-ring branch from 92c6568 to af7e8d8 Compare April 20, 2026 06:32
@spike-rabbit spike-rabbit requested a review from panch1739 April 20, 2026 06:32
The footer / paddings were constructed wrong.
In general components in element do not have a build-in padding.
Especially not on the block-end.
Those are consumer supplied. Exceptions are footer actions and inputs.
This rule is violated by the `si-dashboard` which was having a `padding-block-end`
leading to the actual footer not having `padding-block-end` and thus causing
the focus border to be clipped.
@spike-rabbit spike-rabbit force-pushed the fix/dashboards/fix-cut-focus-ring branch from af7e8d8 to ffacefc Compare April 20, 2026 10:50
@spike-rabbit spike-rabbit marked this pull request as ready for review April 20, 2026 11:14
@spike-rabbit spike-rabbit requested review from a team as code owners April 20, 2026 11:14
Copy link
Copy Markdown
Member

@panch1739 panch1739 left a comment

Choose a reason for hiding this comment

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

@spike-rabbit I think it looks better now, and we solved the focus problem :)

Copy link
Copy Markdown
Member

@chintankavathia chintankavathia left a comment

Choose a reason for hiding this comment

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

👍

@chintankavathia chintankavathia added this pull request to the merge queue Apr 20, 2026
Merged via the queue into main with commit d420a52 Apr 20, 2026
11 checks passed
@chintankavathia chintankavathia deleted the fix/dashboards/fix-cut-focus-ring branch April 20, 2026 11:36
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.

3 participants