Skip to content

Commit

Permalink
Merge branch 'main' into feat-new-popover
Browse files Browse the repository at this point in the history
  • Loading branch information
mfranzke authored Mar 28, 2024
2 parents 1c8fe2f + 76b936e commit d1d7547
Show file tree
Hide file tree
Showing 15 changed files with 47 additions and 35 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion output/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"devDependencies": {
"@axe-core/playwright": "^4.8.5",
"@playwright/experimental-ct-react": "1.42.1",
"@types/react": "^18.2.72",
"@types/react": "^18.2.73",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sass": "^1.72.0"
Expand Down
20 changes: 10 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions packages/components/src/components/badge/badge.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@
}

.db-badge {
--badge-size: #{variables.$db-spacing-fixed-sm};
--badge-size: #{variables.$db-spacing-fixed-xs};
@extend %component-border;
@extend %db-overwrite-font-size-sm;
@extend %db-overwrite-font-size-2xs;
@extend %default-button;

@include tag-components.get-tag-colors();
border-radius: 42px; // extreme radius
padding-inline: variables.$db-spacing-fixed-xs;
padding-inline: variables.$db-spacing-fixed-2xs;
block-size: fit-content;
inline-size: fit-content;

Expand All @@ -56,31 +56,31 @@
}

&:has(.db-icon) {
padding: variables.$db-spacing-fixed-2xs;
padding: variables.$db-spacing-fixed-3xs;
}

& > *,
.db-icon {
@extend %db-overwrite-font-size-sm;
@extend %db-overwrite-font-size-2xs;
}

&[data-size="small"] {
--badge-size: #{variables.$db-spacing-fixed-xs};
@extend %db-overwrite-font-size-2xs;
padding-inline: variables.$db-spacing-fixed-2xs;
&[data-size="medium"] {
--badge-size: #{variables.$db-spacing-fixed-sm};
@extend %db-overwrite-font-size-sm;
padding-inline: variables.$db-spacing-fixed-xs;

&:empty,
> span:empty {
padding: 0;
}

&:has(.db-icon) {
padding: variables.$db-spacing-fixed-3xs;
padding: variables.$db-spacing-fixed-2xs;
}

& > *,
.db-icon {
@extend %db-overwrite-font-size-2xs;
@extend %db-overwrite-font-size-sm;
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/foundations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@csstools/normalize.css": "12.1.1"
},
"devDependencies": {
"@zeplin/sdk": "^1.18.0",
"@zeplin/sdk": "^1.19.0",
"cpr": "3.0.1",
"cssnano": "^6.1.2",
"dotenv": "^16.4.5",
Expand Down
2 changes: 1 addition & 1 deletion showcases/patternhub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@next/mdx": "^14.1.4",
"@types/dompurify": "3.0.5",
"@types/node": "20.11.30",
"@types/react": "18.2.72",
"@types/react": "18.2.73",
"@types/react-dom": "18.2.22",
"esbuild": "0.20.2",
"eslint": "8.57.0",
Expand Down
2 changes: 1 addition & 1 deletion showcases/react-showcase/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"react-router-dom": "6.22.3"
},
"devDependencies": {
"@types/react": "^18.2.72",
"@types/react": "^18.2.73",
"@types/react-dom": "^18.2.22",
"@vitejs/plugin-react": "^4.2.1",
"cross-env": "^7.0.3",
Expand Down
32 changes: 22 additions & 10 deletions showcases/shared/badge.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@
"variant": "warning"
}
},
{
"name": "Adaptive Strong",
"props": {
"emphasis": "strong"
}
},
{
"name": "Neutral Strong",
"props": {
Expand Down Expand Up @@ -113,13 +119,13 @@
"examples": [
{
"name": "Small (Default)",
"props": {
"size": "small"
}
"props": {}
},
{
"name": "Medium",
"props": {}
"props": {
"size": "medium"
}
}
]
},
Expand All @@ -131,29 +137,35 @@
"props": {}
},
{
"name": "Dot",
"name": "Text (Default) - Medium",
"props": {
"noContent": true
"size": "medium"
}
},
{
"name": "Dot - Small",
"props": {
"noContent": true
}
},
{
"name": "Dot - Medium",
"props": {
"noContent": true,
"size": "small"
"size": "medium"
}
},
{
"name": "Icon",
"name": "Icon - Small",
"props": {
"example": "icon"
}
},
{
"name": "Icon - Small",
"name": "Icon - Medium",
"props": {
"example": "icon",
"size": "small"
"size": "medium"
}
}
]
Expand Down

0 comments on commit d1d7547

Please sign in to comment.