Skip to content

fix(dashboard-card): display subHeading#1875

Open
ljanner wants to merge 1 commit intomainfrom
fix/dashboard-card-subHeading
Open

fix(dashboard-card): display subHeading#1875
ljanner wants to merge 1 commit intomainfrom
fix/dashboard-card-subHeading

Conversation

@ljanner
Copy link
Copy Markdown
Member

@ljanner ljanner commented Apr 15, 2026

Aligned the heading section with si-card. The subHeading input was inherited from SiCardBaseDirective but not rendered in the dashboard card template.

Resolves #1874


Documentation.
Examples.
Dashboards Demo.
Playwright report.

Coverage Reports:

Code Coverage

@ljanner ljanner requested review from a team as code owners April 15, 2026 11:03
@ljanner ljanner self-assigned this Apr 15, 2026
@ljanner ljanner added this to the 49.x milestone Apr 15, 2026
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 a subHeading property to the SiDashboardCardComponent, including template updates, styling for the heading container, and corresponding unit tests. Review feedback identifies that the card header's visibility condition needs to include the new subHeading to prevent it from being hidden when no primary heading is present. Additionally, it is recommended to conditionally apply top padding to the subheading only when a primary heading exists to maintain correct visual alignment.

Comment thread projects/element-ng/dashboard/si-dashboard-card.component.html
Comment thread projects/element-ng/dashboard/si-dashboard-card.component.html
@ljanner ljanner marked this pull request as draft April 15, 2026 11:33
@ljanner ljanner force-pushed the fix/dashboard-card-subHeading branch 2 times, most recently from e027f27 to 85624ee Compare April 16, 2026 11:40
@ljanner ljanner marked this pull request as ready for review April 16, 2026 12:19
Aligned the heading section with si-card. The
subHeading input was inherited from `SiCardBaseDirective`
but not rendered in the dashboard card template.

Resolves #1874
@ljanner ljanner force-pushed the fix/dashboard-card-subHeading branch from 85624ee to df09b72 Compare April 16, 2026 13:07
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.

Add secondary title in all Dashboard widgets

1 participant