+
@@ -34,6 +34,8 @@ test.describe('DBSelect', () => {
await mount(comp);
const accessibilityScanResults = await new AxeBuilder({ page })
.include('.db-select')
+ .exclude('test-placeholder')
+ .disableRules('color-contrast')
.analyze();
expect(accessibilityScanResults.violations).toEqual([]);
diff --git a/packages/components/src/components/tag/model.ts b/packages/components/src/components/tag/model.ts
index ebc7f11e3d4..039111c0199 100644
--- a/packages/components/src/components/tag/model.ts
+++ b/packages/components/src/components/tag/model.ts
@@ -1,12 +1,9 @@
import {
- ChangeEventState,
DefaultVariantProps,
EmphasisProps,
- FormState,
GlobalProps,
GlobalState,
IconProps,
- InitializedState,
OverflowProps
} from '../../shared/model';
@@ -56,5 +53,4 @@ export interface DBTagDefaultState {
handleRemove?: () => void;
}
-export type DBTagState = DBTagDefaultState &
- GlobalState ;
+export type DBTagState = DBTagDefaultState & GlobalState;
diff --git a/packages/components/src/components/tag/tag.scss b/packages/components/src/components/tag/tag.scss
index 760673a7d3b..f2babfc1a41 100644
--- a/packages/components/src/components/tag/tag.scss
+++ b/packages/components/src/components/tag/tag.scss
@@ -32,7 +32,8 @@
&:has(dbbutton):has(dbbutton:not(.db-tab-remove-button)),
&:has(db-button):has(db-button:not(.db-tab-remove-button)),
&:not(:has(dbbutton)):has(button:not(.db-tab-remove-button)),
- &:has(a) {
+ &:has(a),
+ &:has(label) {
padding-inline: 0;
}
}
@@ -73,26 +74,26 @@
@extend %db-tag;
position: relative;
- input {
+ label {
@extend %default-transition;
- @extend %component-border;
- appearance: none;
inline-size: 100%;
- block-size: inherit;
- border-radius: component.$default-border-radius;
- position: absolute;
+ margin-inline-start: 0;
- &:not(:checked) {
+ &:has(input:not(:checked)) {
--db-current-base-color-alpha: 100%;
}
- &:checked {
+ &:has(input:checked) {
border-width: component.$default-border-height;
&::before {
content: none;
}
}
+
+ input {
+ display: none;
+ }
}
a {
@@ -114,14 +115,8 @@
}
}
- label {
- @extend %db-overwrite-font-size-sm;
- margin-inline-start: 0;
- z-index: 1;
- }
-
&:not(:has(dbbutton, db-button)):has(button:not(.db-tab-remove-button)),
- &:has(:is(dbbutton, db-button):not(.db-tab-remove-button), a, input) {
+ &:has(:is(dbbutton, db-button):not(.db-tab-remove-button), a, label) {
border: none;
}
@@ -134,13 +129,25 @@
}
button,
- input:checked,
- a {
+ label:has(input:checked) {
+ @include colors.bg-transparent-interactive();
@include colors.get-variant-bg-color(0.08);
}
+ &:not([data-emphasis="strong"]) {
+ label:has(input[type="radio"]:checked) {
+ &:enabled {
+ &:hover,
+ &:active {
+ --db-current-base-color-alpha: 92%;
+ }
+ }
+ }
+ }
+
button,
- a {
+ a,
+ label {
@extend %db-overwrite-font-size-sm;
@extend %component-border;
block-size: inherit;
@@ -148,6 +155,11 @@
border-radius: component.$default-border-radius;
}
+ button,
+ a {
+ @include colors.get-variant-bg-color(0.08);
+ }
+
db-button,
dbbutton,
db-checkbox,
diff --git a/packages/components/src/components/textarea/model.ts b/packages/components/src/components/textarea/model.ts
index be47c0fc230..3ce2381385a 100644
--- a/packages/components/src/components/textarea/model.ts
+++ b/packages/components/src/components/textarea/model.ts
@@ -46,8 +46,7 @@ export type DBTextareaProps = DBTextareaDefaultProps &
FormProps &
GlobalProps &
FormTextProps &
- FormMessageProps &
- OverflowProps;
+ FormMessageProps;
export interface DBTextareaDefaultState {}
diff --git a/packages/components/src/components/textarea/textarea.lite.tsx b/packages/components/src/components/textarea/textarea.lite.tsx
index 1459f7fe3e3..de6c2d0cdb9 100644
--- a/packages/components/src/components/textarea/textarea.lite.tsx
+++ b/packages/components/src/components/textarea/textarea.lite.tsx
@@ -2,7 +2,11 @@ import { onMount, Show, useMetadata, useStore } from '@builder.io/mitosis';
import { DBTextareaProps, DBTextareaState } from './model';
import { DBInfotext } from '../infotext';
import { cls, getMessageIcon, uuid } from '../../utils';
-import { DEFAULT_ID, DEFAULT_LABEL, DEFAULT_MESSAGE_ID_SUFFIX } from '../../shared/constants';
+import {
+ DEFAULT_ID,
+ DEFAULT_LABEL,
+ DEFAULT_MESSAGE_ID_SUFFIX
+} from '../../shared/constants';
useMetadata({
isAttachedToShadowDom: true,
@@ -102,15 +106,13 @@ export default function DBTextarea(props: DBTextareaProps) {
-