Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
CR Feedback
  • Loading branch information
tlmii committed Jul 16, 2024
commit 789c28797f2e139cace803f07e68ce73c3be707f
4 changes: 0 additions & 4 deletions src/Aspire.Dashboard/Components/Pages/TraceDetail.razor.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@
display: inline !important;
}

::deep .trace-view-grid fluent-data-grid-row[row-type="default"]:hover {
background-color: var(--neutral-fill-hover);
}

::deep .trace-view-grid fluent-data-grid-row[row-type="default"] {
cursor: pointer;
}
Expand Down
11 changes: 11 additions & 0 deletions src/Aspire.Dashboard/wwwroot/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,17 @@ fluent-toolbar[orientation=horizontal] {
color-scheme: dark;
}

/*
Override the `cursor: pointer` in the default styles from fluentui-blazor since
we don't have selection implemented and the pointer doesn't really make sense.
The `fluent-data-grid-row[role='row']` part added to the beginning is a bit of
a hack to get the specificity higher than the default style to avoid using
`!important` just in case there's a reason to to override further later.
*/
fluent-data-grid-row[role='row'].hover:not([row-type='header'],[row-type='sticky-header']):hover {
cursor: auto;
}

[data-theme="light"] {
color-scheme: light;
}
Expand Down
6 changes: 6 additions & 0 deletions src/Aspire.Dashboard/wwwroot/js/app-theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,12 @@ function isDark(color) {
return color.relativeLuminance <= darknessLuminanceTarget;
}

/**
* Creates additional design tokens that are used to define the hover colors for the neutral layers
* used in the site theme (neutral-layer-1 and neutral-layer-2, specifically). Unlike other -hover
* variants, these are not created by the design system by default so we need to create them ourselves.
* This is a lightly tweaked variant of other hover recipes used in the design system.
*/
function createAdditionalDesignTokens() {
const neutralLayer1HoverLightDelta = DesignToken.create({ name: 'neutral-layer-1-hover-light-delta', cssCustomPropertyName: null }).withDefault(3);
const neutralLayer1HoverDarkDelta = DesignToken.create({ name: 'neutral-layer-1-hover-dark-delta', cssCustomPropertyName: null }).withDefault(2);
Expand Down