Skip to content

Commit

Permalink
fix(datagrid): resolve manage columns and popover shim color issues
Browse files Browse the repository at this point in the history
  • Loading branch information
williamernest committed Feb 28, 2023
1 parent 95ebfb4 commit c62e9b3
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const defaultStory: Story = args => ({
<clr-dg-row-detail *clrIfExpanded>{{element|json}}</clr-dg-row-detail>
</ng-container>
</clr-dg-row>
<clr-dg-footer>
<clr-dg-pagination #pagination>
<clr-dg-page-size [clrPageSizeOptions]="[10,20,50,100]">Elements per page</clr-dg-page-size>
Expand Down
11 changes: 9 additions & 2 deletions .storybook/stories/datagrid/datagrid.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const defaultStory: Story = args => ({
<clr-dg-row-detail *clrIfExpanded>{{element|json}}</clr-dg-row-detail>
</ng-container>
</clr-dg-row>
<clr-dg-footer>
<clr-dg-pagination #pagination>
<clr-dg-page-size [clrPageSizeOptions]="[10,20,50,100]">Elements per page</clr-dg-page-size>
Expand Down Expand Up @@ -112,6 +112,13 @@ const defaultParameters: Parameters = {
},
};

const variants: Parameters[] = [];
const variants: Parameters[] = [
{
hidableColumns: false,
},
{
hidableColumns: true,
},
];

setupStorybook([ClrDatagridModule, ClrConditionalModule], defaultStory, defaultParameters, variants);
3 changes: 2 additions & 1 deletion projects/angular/src/data/datagrid/_datagrid.clarity.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1290,7 +1290,8 @@
$clr-use-custom-properties
);
}
&:active {
&:active,
&:focus {
box-shadow: none;
@include css-var(
border-color,
Expand Down
16 changes: 14 additions & 2 deletions projects/ui/src/shim.cds-core.scss
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@
--clr-dropdown-selection-color: var(--cds-alias-object-interaction-background-selected); // var(--clr-global-selection-color);
--clr-dropdown-box-shadow: var(--clr-popover-box-shadow-color);

--clr-dropdown-text-color: var(--clr-p1-color);
--clr-dropdown-text-color: var(--clr-global-font-color);
--clr-dropdown-header-color: var(--cds-global-typography-color-400); // var(--clr-color-neutral-900);
--clr-dropdown-item-color: var(--cds-global-typography-color-300); // var(--clr-color-neutral-700);

Expand Down Expand Up @@ -726,7 +726,7 @@
--clr-datagrid-pagination-input-border-focus-color: var(--clr-color-action-400);
--clr-datagrid-popover-bg-color: var(--cds-alias-object-overlay-background); // var(--clr-color-neutral-0);
--clr-datagrid-popover-border-color: var(--cds-alias-object-border-color); // indirectly mapped;
--clr-datagrid-action-popover-hover-color: var(--cds-alias-object-interaction-color-hover); // var(--clr-color-neutral-200);
--clr-datagrid-action-popover-hover-color: var(--cds-alias-object-interaction-background-hover); // var(--clr-color-neutral-200);
--clr-datagrid-row-selected: var(--cds-global-typography-color-500); // var(--clr-color-neutral-1000);

--clr-datagrid-column-switch-header-font-color: var(--cds-global-color-gray-500); // var(--clr-color-neutral-500);
Expand All @@ -739,6 +739,18 @@

--clr-datagrid-loading-background: var(--cds-alias-object-opacity-100); // #{$clr-datagrid-loading-background}; // hsla(0, 0%, 100%, 0.6);

--clr-datagrid-column-toggle-border-color: var(--cds-alias-object-border-color);
--clr-datagrid-column-toggle-fill-color: var(--clr-btn-outline-bg-color);
--clr-datagrid-column-toggle-text-color: var(--cds-global-typography-color-400);

--clr-datagrid-column-toggle-border-hover-color: var(--cds-alias-object-interaction-border-color);
--clr-datagrid-column-toggle-fill-hover-color: var(--cds-alias-object-interaction-background-hover);
--clr-datagrid-column-toggle-text-hover-color: var(--cds-global-typography-color-500);

--clr-datagrid-column-toggle-border-active-color: var(--cds-alias-object-interaction-border-color);
--clr-datagrid-column-toggle-fill-active-color: var(--cds-alias-object-interaction-background-selected);
--clr-datagrid-column-toggle-text-active-color: var(--cds-global-typography-color-500);

.login-wrapper {
// these are set in the ng css, but seem to be getting overridden somewhere
--clr-login-background-color: var(--clr-global-app-background);
Expand Down

0 comments on commit c62e9b3

Please sign in to comment.