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
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,12 @@
Only the first 1000 iterations are show
</step-alert>
} @else if (showCountWarning()) {
<step-alert [type]="AlertType.WARNING">
<step-icon name="alert-triangle" />
The number of shown iterations doesn't match the iteration count of the tree
<step-icon
name="help-circle"
class="warning-explanation"
matTooltip="The count here is exact, based on raw data, while in the tree, the time-series aggregation groups and adjusts counts according to the time resolution."
matTooltipPosition="below"
/>
</step-alert>
<step-icon
name="alert-triangle"
class="warning-explanation"
matTooltip="The count here is exact, based on raw data, while in the tree, the time-series aggregation groups and adjusts counts according to the time resolution."
matTooltipPosition="below"
/>
Comment on lines +85 to +90

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Replacing the text-based <step-alert> with a standalone <step-icon> and tooltip makes this warning inaccessible to screen readers and keyboard-only users. To ensure accessibility, add an aria-label describing the warning and a tabindex="0" so keyboard users can focus the icon to trigger the tooltip.

        <step-icon
          name="alert-triangle"
          class="warning-explanation"
          matTooltip="The count here is exact, based on raw data, while in the tree, the time-series aggregation groups and adjusts counts according to the time resolution."
          matTooltipPosition="below"
          tabindex="0"
          aria-label="Warning: The number of shown iterations doesn't match the iteration count of the tree"
        />

}
</ng-container>
</step-table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,7 @@ step-aggregated-tree-node-iteration-list {
}
}

step-alert {
margin-bottom: 0;
padding: 0.5rem;
.warning-explanation {
margin-left: 0.5rem;
}
.warning-explanation {
color: var.$orange;
}
}