Skip to content

Commit 382216d

Browse files
committed
fix(ui): remove unsupported customizable select elements
Browsers strip <button> and <selectedcontent> inside <select>, producing an empty element. Remove the malformed HTML and related type declaration and CSS rule.
1 parent 07a3aea commit 382216d

3 files changed

Lines changed: 0 additions & 19 deletions

File tree

src/components/ProjectSelect.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ export function ProjectSelect(props: ProjectSelectProps) {
1515
value={props.value ?? ''}
1616
onChange={(e) => props.onChange(e.currentTarget.value || null)}
1717
>
18-
<button type="button">
19-
<selectedcontent />
20-
</button>
2118
<Show when={props.placeholder}>
2219
<option value="" disabled hidden>
2320
{props.placeholder}

src/styles.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -481,10 +481,6 @@ textarea::placeholder {
481481
cursor: pointer;
482482
}
483483

484-
.project-select selectedcontent .project-color-dot {
485-
margin-right: 4px;
486-
}
487-
488484
.project-color-dot {
489485
display: inline-block;
490486
width: 9px;

src/vite-env.d.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1 @@
11
/// <reference types="vite/client" />
2-
3-
// Chromium 133+ customizable <select> elements (appearance: base-select)
4-
// Safe in Electron — update type if a dedicated interface becomes available in the spec
5-
declare module 'solid-js' {
6-
namespace JSX {
7-
interface IntrinsicElements {
8-
selectedcontent: HTMLAttributes<HTMLElement>;
9-
}
10-
}
11-
}
12-
13-
export {};

0 commit comments

Comments
 (0)