Skip to content

Commit

Permalink
Fix buttons in apps, Fix checkbox in the grid (#4568)
Browse files Browse the repository at this point in the history
* Fix apps colors, fix grid checkbox

* Fix apps colors, fix grid checkbox
  • Loading branch information
andrzejewsky authored Dec 28, 2023
1 parent 5546daa commit dd6f46f
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/selfish-pets-hammer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---

Fix apps colors, fix grid checkbox
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,12 @@ export const InstalledAppListRow: React.FC<InstalledApp> = props => {
{`v${app.version}`}
</Text>
{isExternal && (
<Chip data-test-id="app-external-label" size="large">
<Chip
data-test-id="app-external-label"
size="large"
backgroundColor="default1"
borderColor="default1"
>
<Text variant="caption" size="small">
<FormattedMessage {...appsMessages.externalApp} />
</Text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ export const NotInstalledAppListRow: React.FC<AppInstallation> = props => {
<AppAvatar logo={logo} />
<Text variant="bodyStrong">{appInstallation.appName}</Text>
{isExternal && (
<Chip data-test-id="app-external-label" size="large">
<Chip
data-test-id="app-external-label"
size="large"
backgroundColor="default1"
borderColor="default1"
>
<Text variant="caption" size="small">
<FormattedMessage {...appsMessages.externalApp} />
</Text>
Expand Down
8 changes: 7 additions & 1 deletion src/components/Datagrid/Datagrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,13 @@ export const Datagrid: React.FC<DatagridProps> = ({
}

const overrideTheme: Partial<Theme> = {
bgCell: themeValues.colors.background.default1Hovered,
/*
Grid-specific colors. Transparency matters when we highlight entire row.
*/
bgCell:
theme === "defaultLight"
? "hsla(220, 18%, 97%, 1)"
: "hsla(211, 32%, 19%, 1)",
bgCellMedium: themeValues.colors.background.default1Hovered,
};

Expand Down

0 comments on commit dd6f46f

Please sign in to comment.