Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(ui): kill bracket even more. replace with add bg-active (#3064)

Fake-Userc08136e3f013
diff --git a/js/app/packages/app/component/EntityModal/MoveToProjectView.tsx b/js/app/packages/app/component/EntityModal/MoveToProjectView.tsx
index 254795079c..cc781ab3b6 100644
--- a/js/app/packages/app/component/EntityModal/MoveToProjectView.tsx
+++ b/js/app/packages/app/component/EntityModal/MoveToProjectView.tsx
@@ -413,7 +413,7 @@ export const MoveToProjectView = (props: {
</div>
</div>
- <div class="w-full h-fit suppress-css-brackets mb-3">
+ <div class="w-full h-fit mb-3">
<input
type="text"
placeholder="Search folders..."
diff --git a/js/app/packages/app/component/EntityModal/RenameView.tsx b/js/app/packages/app/component/EntityModal/RenameView.tsx
index 0612e378dc..71865e3c90 100644
--- a/js/app/packages/app/component/EntityModal/RenameView.tsx
+++ b/js/app/packages/app/component/EntityModal/RenameView.tsx
@@ -41,7 +41,7 @@ export const RenameView = (props: {
return (
<div class="w-full">
<EntityModalTitle title="Rename" />
- <div class="w-full focus-within:bracket-offset-2">
+ <div class="w-full">
<input
ref={(el) => {
inputRef = el;
@@ -56,7 +56,7 @@ export const RenameView = (props: {
value={editValue()}
onInput={(e) => setEditValue(e.currentTarget.value)}
onKeyDown={handleKeyDown}
- class="w-full p-2 text-sm border border-edge bg-menu text-ink placeholder:text-ink-placeholder focus:outline-none selection:bg-ink selection:text-panel"
+ class="w-full p-2 text-sm border border-edge bg-menu text-ink placeholder:text-ink-placeholder focus:outline-none focus:bg-active selection:bg-ink selection:text-panel"
placeholder="Enter title..."
/>
</div>
diff --git a/js/app/packages/app/component/Launcher.tsx b/js/app/packages/app/component/Launcher.tsx
index d9c611e122..bd9edc7071 100644
--- a/js/app/packages/app/component/Launcher.tsx
+++ b/js/app/packages/app/component/Launcher.tsx
@@ -397,7 +397,7 @@ const LauncherMenuItem = (props: LauncherMenuItemProps) => {
' size-28 relative flex flex-col sm:gap-4 gap-2 items-center isolate justify-center bg-panel border border-edge-muted transition-transform ease-click duration-200',
`create-menu-${props.creatableBlock.label.toLowerCase()}`,
{
- '-translate-y-2 text-ink bracket-offset-1': props.focused,
+ '-translate-y-2 text-ink bg-active': props.focused,
'text-ink-extra-muted': !props.focused,
}
)}
diff --git a/js/app/packages/app/component/SimpleDropdown.tsx b/js/app/packages/app/component/SimpleDropdown.tsx
index c463e29ad0..ec182a05a4 100644
--- a/js/app/packages/app/component/SimpleDropdown.tsx
+++ b/js/app/packages/app/component/SimpleDropdown.tsx
@@ -134,7 +134,7 @@ export type DropdownItemProps = {
class?: string;
};
-const ITEM_BASE_CLASS = `flex flex-row w-full gap-1.5 tracking-tight ${isMobile() ? 'py-2 px-1 text-base' : 'py-1 pl-2 pr-2 text-sm'} font-medium justify-between items-center focus-bracket rounded-xs`;
+const ITEM_BASE_CLASS = `flex flex-row w-full gap-1.5 tracking-tight ${isMobile() ? 'py-2 px-1 text-base' : 'py-1 pl-2 pr-2 text-sm'} font-medium justify-between items-center rounded-xs outline-none focus:bg-active data-[highlighted]:bg-active`;
function ItemInner(props: Pick<DropdownItemProps, 'icon' | 'text'>) {
return (
diff --git a/js/app/packages/app/component/bulk-edit-entity/BulkRenameEntitiesView.tsx b/js/app/packages/app/component/bulk-edit-entity/BulkRenameEntitiesView.tsx
index 18c9d6e94d..e4f32aa650 100644
--- a/js/app/packages/app/component/bulk-edit-entity/BulkRenameEntitiesView.tsx
+++ b/js/app/packages/app/component/bulk-edit-entity/BulkRenameEntitiesView.tsx
@@ -143,7 +143,7 @@ export const BulkRenameEntitiesView = (props: {
/>
</Show>
- <div class="w-full focus-within:bracket-offset-2">
+ <div class="w-full">
<input
ref={(el) => {
inputRef = el;
@@ -158,7 +158,7 @@ export const BulkRenameEntitiesView = (props: {
onInput={(e) => setEditValue(e.currentTarget.value)}
onKeyDown={handleKeyDown}
class="w-full p-2 text-sm border border-edge bg-menu text-ink
- placeholder:text-ink-placeholder focus:outline-none
+ placeholder:text-ink-placeholder focus:outline-none focus:bg-active
selection:bg-ink selection:text-panel"
placeholder="Enter new text..."
/>
diff --git a/js/app/packages/app/component/interactive-onboarding/components-lib.tsx b/js/app/packages/app/component/interactive-onboarding/components-lib.tsx
index 88a0d31de9..6d6f8a429e 100644
--- a/js/app/packages/app/component/interactive-onboarding/components-lib.tsx
+++ b/js/app/packages/app/component/interactive-onboarding/components-lib.tsx
@@ -20,11 +20,9 @@ interface CalloutShellProps {
function CalloutShell(props: CalloutShellProps) {
return (
- <div class="flex items-center gap-3 rounded-xs bg-hover/50 px-4 py-3 border border-edge-muted bracket-never">
+ <div class="flex items-center gap-3 rounded-xs bg-hover/50 px-4 py-3 border border-edge-muted">
<span class="text-sm text-muted">{props.leader}</span>
- <div class="flex items-center gap-2.5 bracket-never">
- {props.children}
- </div>
+ <div class="flex items-center gap-2.5">{props.children}</div>
<span class="text-sm text-muted">{props.label}</span>
<Show when={props.completed}>
<div class="bg-accent text-panel size-5 rounded xs flex items-center justify-center ml-auto">
@@ -215,7 +213,7 @@ export function ContinueButton(props: ContinueButtonProps) {
ref={props.ref}
type="button"
class={cn(
- 'w-full px-3 py-2.5 text-lg font-bold rounded-xs flex items-center gap-2 bracket-never border-none',
+ 'w-full px-3 py-2.5 text-lg font-bold rounded-xs flex items-center gap-2 border-none',
props.centered ? 'justify-center' : 'justify-between',
{
'bg-transparent text-ink/40 font-normal ring-1 ring-edge-muted':
diff --git a/js/app/packages/app/component/interactive-onboarding/lessons/invite-team.tsx b/js/app/packages/app/component/interactive-onboarding/lessons/invite-team.tsx
index bd951a999e..d81562af05 100644
--- a/js/app/packages/app/component/interactive-onboarding/lessons/invite-team.tsx
+++ b/js/app/packages/app/component/interactive-onboarding/lessons/invite-team.tsx
@@ -225,7 +225,7 @@ function InviteTeamDemo(props: LessonContentProps) {
disabled={isPending()}
aria-describedby="team-name-counter"
class={cn(
- 'w-[calc(100%-36px)] px-3 py-2 text-base rounded-xs border bg-panel text-ink placeholder:text-ink/40 bracket-never focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:ring-offset-panel',
+ 'w-[calc(100%-36px)] px-3 py-2 text-base rounded-xs border bg-panel text-ink placeholder:text-ink/40 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:ring-offset-panel',
errors().teamName
? 'border-failure focus-visible:ring-failure'
: 'border-edge focus-visible:ring-accent',
@@ -282,7 +282,7 @@ function InviteTeamDemo(props: LessonContentProps) {
aria-describedby="invite-members-description"
aria-invalid={!!errors().emails?.[index]}
class={cn(
- 'flex-1 px-3 py-2 text-base rounded-xs border bg-panel text-ink placeholder:text-ink/40 bracket-never focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:ring-offset-panel',
+ 'flex-1 px-3 py-2 text-base rounded-xs border bg-panel text-ink placeholder:text-ink/40 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:ring-offset-panel',
errors().emails?.[index]
? 'border-failure focus-visible:ring-failure'
: 'border-edge focus-visible:ring-accent',
@@ -307,7 +307,7 @@ function InviteTeamDemo(props: LessonContentProps) {
: 'Clear email'
}
class={cn(
- 'shrink-0 p-1.5 text-ink/40 hover:text-ink hover:bg-ink/5 rounded-xs bracket-never focus:outline-none focus-visible:ring-2 focus-visible:ring-accent/50 focus-visible:ring-offset-1 focus-visible:ring-offset-panel',
+ 'shrink-0 p-1.5 text-ink/40 hover:text-ink hover:bg-ink/5 rounded-xs focus:outline-none focus-visible:ring-2 focus-visible:ring-accent/50 focus-visible:ring-offset-1 focus-visible:ring-offset-panel',
isPending() && 'opacity-50 cursor-not-allowed'
)}
>
@@ -337,7 +337,7 @@ function InviteTeamDemo(props: LessonContentProps) {
disabled={!canAddEmail() || isPending()}
aria-label="Add another email invite"
class={cn(
- 'flex-1 flex items-center gap-2 px-3 py-2 text-sm rounded-xs bracket-never focus:outline-none focus-visible:ring-2 focus-visible:ring-accent/50 focus-visible:ring-offset-1 focus-visible:ring-offset-panel shrink-0',
+ 'flex-1 flex items-center gap-2 px-3 py-2 text-sm rounded-xs focus:outline-none focus-visible:ring-2 focus-visible:ring-accent/50 focus-visible:ring-offset-1 focus-visible:ring-offset-panel shrink-0',
canAddEmail() && !isPending()
? 'text-ink bg-ink/8 hover:bg-ink/12'
: 'text-ink/30 bg-ink/4 cursor-not-allowed'
@@ -368,7 +368,7 @@ function SkipAction(props: LessonContentProps) {
<button
type="button"
onClick={() => props.advance()}
- class="w-full px-3 py-2.5 text-lg rounded-xs flex items-center justify-between text-ink/40 hover:text-ink hover:bg-ink/5 bracket-never focus:outline-none focus-visible:ring-2 focus-visible:ring-accent/50 focus-visible:ring-offset-1 focus-visible:ring-offset-panel"
+ class="w-full px-3 py-2.5 text-lg rounded-xs flex items-center justify-between text-ink/40 hover:text-ink hover:bg-ink/5 focus:outline-none focus-visible:ring-2 focus-visible:ring-accent/50 focus-visible:ring-offset-1 focus-visible:ring-offset-panel"
>
Skip for now
</button>
diff --git a/js/app/packages/app/component/interactive-onboarding/lessons/welcome.tsx b/js/app/packages/app/component/interactive-onboarding/lessons/welcome.tsx
index fae0a1fe05..7f62adbc41 100644
--- a/js/app/packages/app/component/interactive-onboarding/lessons/welcome.tsx
+++ b/js/app/packages/app/component/interactive-onboarding/lessons/welcome.tsx
@@ -28,7 +28,7 @@ function WelcomeSecondaryAction() {
<A
href="/login"
onClick={() => analytics.track('login_from_onboarding')}
- class="w-full px-3 py-2.5 text-lg rounded-xs flex items-center justify-between gap-2 bracket-never border-none bg-transparent text-ink-extra-muted hover:bg-hover ring-1 ring-edge-muted"
+ class="w-full px-3 py-2.5 text-lg rounded-xs flex items-center justify-between gap-2 border-none bg-transparent text-ink-extra-muted hover:bg-hover ring-1 ring-edge-muted"
>
Login
</A>
diff --git a/js/app/packages/app/component/ios-share-sheet/IosShareSheet.tsx b/js/app/packages/app/component/ios-share-sheet/IosShareSheet.tsx
index ccf116019a..fd71a0aceb 100644
--- a/js/app/packages/app/component/ios-share-sheet/IosShareSheet.tsx
+++ b/js/app/packages/app/component/ios-share-sheet/IosShareSheet.tsx
@@ -390,7 +390,6 @@ function IosShareSheetComposer(props: {
selectedOptions={selectedOptions()}
options={destinationOptions}
triggerMode="input"
- noBrackets
hideBorder
noPadding
focusOnMount
diff --git a/js/app/packages/app/component/next-soup/soup-view/filters-bar/button.tsx b/js/app/packages/app/component/next-soup/soup-view/filters-bar/button.tsx
index ee29cb5558..3cd70ec4be 100644
--- a/js/app/packages/app/component/next-soup/soup-view/filters-bar/button.tsx
+++ b/js/app/packages/app/component/next-soup/soup-view/filters-bar/button.tsx
@@ -68,7 +68,7 @@ export const Button = <T extends ValidComponent = 'button'>(
<KButton
class={cn(
'inline-flex items-center justify-center font-medium rounded-md',
- 'focus-visible:outline-none',
+ 'outline-none focus-visible:bg-active',
'data-disabled:cursor-not-allowed data-disabled:opacity-50',
variantStyles[variant()],
sizeStyles[size()],
diff --git a/js/app/packages/app/component/next-soup/soup-view/filters-bar/unified-filter-dropdown.tsx b/js/app/packages/app/component/next-soup/soup-view/filters-bar/unified-filter-dropdown.tsx
index a5a4924e4d..98712ec8f2 100644
--- a/js/app/packages/app/component/next-soup/soup-view/filters-bar/unified-filter-dropdown.tsx
+++ b/js/app/packages/app/component/next-soup/soup-view/filters-bar/unified-filter-dropdown.tsx
@@ -802,7 +802,7 @@ export const UnifiedFilterDropdown = () => {
as={Button}
variant="secondary"
size="sm"
- class="rounded-xs [&_svg]:size-4 suppress-css-bracket"
+ class="rounded-xs [&_svg]:size-4"
>
<SlidersHorizontalIcon />
<span class="font-medium">Filter</span>
diff --git a/js/app/packages/app/component/next-soup/soup-view/soup-view.tsx b/js/app/packages/app/component/next-soup/soup-view/soup-view.tsx
index 642034cc4b..ab293fc459 100644
--- a/js/app/packages/app/component/next-soup/soup-view/soup-view.tsx
+++ b/js/app/packages/app/component/next-soup/soup-view/soup-view.tsx
@@ -849,7 +849,7 @@ export const SoupViewList = (props: SoupViewListProps) => {
return (
<MaybeSoupEntityActionDrawerManager>
<div
- class="size-full bracket-never no-select-children"
+ class="size-full no-select-children"
ref={(el) => {
setSoupViewRef(el);
attachHotkeys(el);
diff --git a/js/app/packages/app/component/property-edit-modal/PropertyEditorModal.tsx b/js/app/packages/app/component/property-edit-modal/PropertyEditorModal.tsx
index e8db503070..b2892bafe5 100644
--- a/js/app/packages/app/component/property-edit-modal/PropertyEditorModal.tsx
+++ b/js/app/packages/app/component/property-edit-modal/PropertyEditorModal.tsx
@@ -80,7 +80,7 @@ function ListItem(props: {
class={cn(
'flex flex-row w-full justify-between items-center gap-2 py-1.5 px-2 scroll-my-1',
{
- 'bg-hover bracket': props.isSelected && !props.disabled,
+ 'bg-active': props.isSelected && !props.disabled,
'opacity-50 cursor-not-allowed': props.disabled,
}
)}
@@ -152,7 +152,7 @@ export function PropertyEditorModal() {
<Dialog open={propertyEditorOpen()} onOpenChange={togglePropertyEditor}>
<Dialog.Portal>
<DialogWrapper contentRef={mergeRefs(attach, setDialogRef)}>
- <div class="flex flex-col max-h-108 overflow-hidden bracket-never text-sm">
+ <div class="flex flex-col max-h-108 overflow-hidden text-sm">
<div class="flex items-center gap-2 bg-panel px-2 h-10 border-b border-edge-muted shrink-0">
<span class="pl-2 pointer-events-none">❯</span>
<SearchInput
diff --git a/js/app/packages/app/component/settings/Settings.tsx b/js/app/packages/app/component/settings/Settings.tsx
index ea55e34ef2..ca5a858b12 100644
--- a/js/app/packages/app/component/settings/Settings.tsx
+++ b/js/app/packages/app/component/settings/Settings.tsx
@@ -176,7 +176,7 @@ export function SettingsPanel(props: SettingsPanelProps) {
return (
<div
- class="size-full flex flex-col outline-none bracket-never"
+ class="size-full flex flex-col outline-none"
classList={{ invisible: props.hide }}
tabIndex={0}
ref={settingsContainerRef}
diff --git a/js/app/packages/app/component/settings/Team.tsx b/js/app/packages/app/component/settings/Team.tsx
index 7bb2f90afb..cfa09e4194 100644
--- a/js/app/packages/app/component/settings/Team.tsx
+++ b/js/app/packages/app/component/settings/Team.tsx
@@ -111,7 +111,7 @@ function RoleSelect(props: {
itemComponent={(itemProps: { item: CollectionNode<RoleOption> }) => (
<Select.Item
item={itemProps.item}
- class="flex items-center justify-between gap-2 px-2 py-1.5 text-sm rounded-xs hover:bg-hover cursor-pointer outline-none data-highlighted:bg-hover bracket-never"
+ class="flex items-center justify-between gap-2 px-2 py-1.5 text-sm rounded-xs hover:bg-hover cursor-pointer outline-none data-highlighted:bg-hover"
>
<Select.ItemLabel>{itemProps.item.rawValue.label}</Select.ItemLabel>
<Select.ItemIndicator>
@@ -160,7 +160,7 @@ function TierSelect(props: {
itemComponent={(itemProps: { item: CollectionNode<TierOption> }) => (
<Select.Item
item={itemProps.item}
- class="flex items-center justify-between gap-2 px-2 py-1.5 text-sm rounded-xs hover:bg-hover cursor-pointer outline-none data-highlighted:bg-hover bracket-never"
+ class="flex items-center justify-between gap-2 px-2 py-1.5 text-sm rounded-xs hover:bg-hover cursor-pointer outline-none data-highlighted:bg-hover"
>
<div class="flex flex-col">
<Select.ItemLabel>{itemProps.item.rawValue.label}</Select.ItemLabel>
@@ -227,7 +227,7 @@ function InviteEntryRow(props: {
<TierSelect
value={props.entry.tier}
onChange={props.onTierChange}
- triggerClass="bracket-never flex items-center justify-between w-24 px-3 py-2 text-sm border border-edge-muted rounded-xs bg-input text-ink outline-none focus:border-accent/50 shrink-0"
+ triggerClass="flex items-center justify-between w-24 px-3 py-2 text-sm border border-edge-muted rounded-xs bg-input text-ink outline-none focus:border-accent/50 shrink-0"
/>
</Show>
<Show when={props.showRemove}>
@@ -235,7 +235,7 @@ function InviteEntryRow(props: {
<Button
variant="secondary"
size="icon-sm"
- class="bracket-never rounded-xs shrink-0 focus:border-accent/50"
+ class="rounded-xs shrink-0 focus:border-accent/50"
tabIndex={0}
onClick={props.onRemove}
>
@@ -367,7 +367,7 @@ function InviteEmailsInput(props: {
</Show>
<Button
variant="secondary"
- class="bracket-never rounded-xs w-full justify-center focus:border-accent/50"
+ class="rounded-xs w-full justify-center focus:border-accent/50"
tabIndex={0}
disabled={!canAddRow()}
onClick={addRow}
diff --git a/js/app/packages/app/component/split-layout/components/SplitContainer.tsx b/js/app/packages/app/component/split-layout/components/SplitContainer.tsx
index 17049eb1cc..eb4289cf27 100644
--- a/js/app/packages/app/component/split-layout/components/SplitContainer.tsx
+++ b/js/app/packages/app/component/split-layout/components/SplitContainer.tsx
@@ -77,7 +77,6 @@ export function SplitContainer(
props.ref(ref);
}}
data-split-id={props.id}
- class="bracket-never"
data-split-container
data-modal={panel.handle.isSpotLight()}
tabindex={-1}
diff --git a/js/app/packages/app/component/split-layout/components/SplitTabs.tsx b/js/app/packages/app/component/split-layout/components/SplitTabs.tsx
index 62094d9680..6a417bcc03 100644
--- a/js/app/packages/app/component/split-layout/components/SplitTabs.tsx
+++ b/js/app/packages/app/component/split-layout/components/SplitTabs.tsx
@@ -108,7 +108,7 @@ export function SplitTabs(props: {
/>
<Tabs.List
- class="flex flex-row suppress-css-brackets h-full bg-panel overflow-x-scroll overscroll-none scrollbar-hidden scroll-shadows-x relative"
+ class="flex flex-row h-full bg-panel overflow-x-scroll overscroll-none scrollbar-hidden scroll-shadows-x relative"
as="div"
ref={(r) => {
scrollRef = r;
diff --git a/js/app/packages/app/index.css b/js/app/packages/app/index.css
index e5d227570d..cbb75949fd 100644
--- a/js/app/packages/app/index.css
+++ b/js/app/packages/app/index.css
@@ -195,110 +195,10 @@
}
-/* NOTE: We use this as a compile-time css util in this file to be able reuse the
- * declarations while still being able to override the color. */
-@utility util-bracket-bg-image {
- background-image:
- conic-gradient(from 90deg at top 1px left 1px, #0000 90deg, var(--color-focus) 0),
- conic-gradient(from 180deg at top 1px right 1px, #0000 90deg, var(--color-focus) 0),
- conic-gradient(from 0deg at bottom 1px left 1px, #0000 90deg, var(--color-focus) 0),
- conic-gradient(from -90deg at bottom 1px right 1px, #0000 90deg, var(--color-focus) 0);
-
- background-position:
- 0 0,
- 100% 0,
- 0 100%,
- 100% 100%;
-
- background-size:
- 8px 8px,
- 8px 8px,
- 8px 8px,
- 8px 8px;
-
- background-repeat: no-repeat;
- background-origin: border-box;
-}
-
-@utility bracket {
- position: relative;
-
- /* note (seamus): we !important these selectors to allow for manual brackets within a .suppress-css-brackets*/
- &::after {
- content: "" !important;
- position: absolute;
- inset: 0px !important;
- pointer-events: none;
- @apply util-bracket-bg-image;
- z-index: 10;
- }
-}
-
-/* utility to disable modality-keyboard brackets on a given self element */
-@utility bracket-never {
- &::after {
- content: none !important;
- }
-}
-
-@utility bracket-offset-* {
- position: relative;
-
- /* note (seamus): we !important these selectors to allow for manual brackets within a .suppress-css-brackets*/
- &::after {
- content: "" !important;
- position: absolute;
- inset: calc(0px - --value(integer)px) !important;
- pointer-events: none;
- @apply util-bracket-bg-image;
- z-index: 10;
- }
-}
-
-@utility bracket-split {
- position: relative;
-
- &::after {
- content: "";
- position: absolute;
- inset: 0;
- pointer-events: none;
- background:
- conic-gradient(from 90deg at top 2px left 2px, #0000 90deg, var(--color-focus) 0) 0 0 / 20px 20px border-box no-repeat,
- conic-gradient(from 180deg at top 2px right 2px, #0000 90deg, var(--color-focus) 0) 100% 0 / 20px 20px border-box no-repeat,
- conic-gradient(from 0deg at bottom 2px left 2px, #0000 90deg, var(--color-focus) 0) 0 100% / 20px 20px border-box no-repeat,
- conic-gradient(from -90deg at bottom 2px right 2px, #0000 90deg, var(--color-focus) 0) 100% 100% / 20px 20px border-box no-repeat;
- z-index: 10;
- }
-}
-
@utility hide-scrollbar {
scrollbar-width: none;
}
-@utility bracket-* {
- background-image:
- conic-gradient(from 90deg at top 1px left 1px, #0000 90deg, var(--color-focus) 0),
- conic-gradient(from 180deg at top 1px right 1px, #0000 90deg, var(--color-focus) 0),
- conic-gradient(from 0deg at bottom 1px left 1px, #0000 90deg, var(--color-focus) 0),
- conic-gradient(from -90deg at bottom 1px right 1px, #0000 90deg, var(--color-focus) 0);
-
- background-position:
- 0 0,
- 100% 0,
- 0 100%,
- 100% 100%;
-
- background-size:
- --value(integer)px --value(integer)px,
- --value(integer)px --value(integer)px,
- --value(integer)px --value(integer)px,
- --value(integer)px --value(integer)px;
-
- background-repeat: no-repeat;
- background-origin: border-box;
-}
-
/* utils for patterned bg images */
@utility pattern-* {
--pattern-color: --value(--color-*);
@@ -567,10 +467,6 @@
position: relative;
}
- html[data-modality="keyboard"] .focus-bracket-within:focus-within {
- position: relative;
- }
-
code {
@apply font-mono;
}
@@ -578,54 +474,6 @@
@layer components {
}
-/* Option to add to focusable elements */
-html[data-modality="keyboard"] .focus-bracket:focus-visible::after {
- position: absolute;
- display: block;
- content: "";
- inset: var(--focus-border-inset, 0);
- @apply util-bracket-bg-image;
- pointer-events: none;
-}
-
-/* Add to focusable elements that can't render ::after psuedo class like radio input */
-html[data-modality="keyboard"] .focus-bracket-within:focus-within::after {
- position: absolute;
- display: block;
- content: "";
- inset: var(--focus-border-inset, 0);
- @apply util-bracket-bg-image;
- pointer-events: none;
-}
-
-
-/* Applies to almost all focusable elements */
-html[data-modality="keyboard"] :focus-visible::after {
- position: absolute;
- display: block;
- content: "";
- inset: var(--focus-border-inset, 0);
- @apply util-bracket-bg-image;
- pointer-events: none;
-}
-
-/* Use class 'suppress-css-brackets' to suppress the focus bracket on descendants */
-html[data-modality="keyboard"] .suppress-css-brackets *:focus-visible::after {
- content: none;
-}
-html[data-modality="keyboard"] .suppress-css-bracket:focus-visible::after {
- content: none;
-}
-
-/* Use class 'allow-css-brackets' to re-enable focus brackets inside a suppressed container */
-html[data-modality="keyboard"] .suppress-css-brackets .allow-css-brackets *:focus-visible::after, html[data-modality="mouse"] .suppress-css-brackets .allow-css-brackets *:focus-visible::after {
- position: absolute;
- display: block;
- content: "";
- inset: var(--focus-border-inset, 0);
- @apply util-bracket-bg-image;
- pointer-events: none;
-}
/* Channel message hover + non-selection highlight */
/* Suppressed on touch devices */
@@ -671,12 +519,6 @@ html:not([data-touch-device="true"]) [data-message][data-selected] > .message-ac
to { opacity: 1; }
}
-html[data-modality="keyboard"] input:focus-visible::after,
-html[data-modality="keyboard"] textarea:focus-visible::after,
-html[data-modality="keyboard"] [contenteditable="true"]:focus-visible::after {
- display: none;
-}
-
@utility no-select-children {
* {
user-select: none;
diff --git a/js/app/packages/app/index.tsx b/js/app/packages/app/index.tsx
index e38ef4d6cc..43f6410d2e 100644
--- a/js/app/packages/app/index.tsx
+++ b/js/app/packages/app/index.tsx
@@ -37,7 +37,8 @@ const renderApp = () => {
? 'true'
: 'false';
- // Used for :focus-visible, which focus-bracket utility uses, to prevent input elements triggering :focus-visible on mouse click
+ // Track current input modality (keyboard / mouse / touch) on the document element.
+ // Used by hotkeys and other modality-aware behaviors.
// Use capture phase to ensure we catch events even if they're stopped by handlers
document.addEventListener(
'keydown',
diff --git a/js/app/packages/block-automation/component/AutomationRenameModal.tsx b/js/app/packages/block-automation/component/AutomationRenameModal.tsx
index 0557a20feb..4061a828d4 100644
--- a/js/app/packages/block-automation/component/AutomationRenameModal.tsx
+++ b/js/app/packages/block-automation/component/AutomationRenameModal.tsx
@@ -77,7 +77,7 @@ function AutomationRenameModalContent(props: {
<div class="pointer-events-auto w-full max-w-[min(36rem,calc(100%-1rem))] mx-auto mt-16 bg-menu border border-edge h-fit p-2">
<div class="w-full my-1">
<EntityModalTitle title="Rename" />
- <div class="w-full focus-within:bracket-offset-2">
+ <div class="w-full">
<input
ref={(el) => {
inputRef = el;
@@ -91,7 +91,7 @@ function AutomationRenameModalContent(props: {
value={editValue()}
onInput={(e) => setEditValue(e.currentTarget.value)}
onKeyDown={handleKeyDown}
- class="w-full p-2 text-sm border border-edge bg-menu text-ink placeholder:text-ink-placeholder focus:outline-none selection:bg-ink selection:text-panel"
+ class="w-full p-2 text-sm border border-edge bg-menu text-ink placeholder:text-ink-placeholder focus:outline-none focus:bg-active selection:bg-ink selection:text-panel"
placeholder="Enter title..."
/>
</div>
diff --git a/js/app/packages/block-canvas/component/CanvasRenderer.tsx b/js/app/packages/block-canvas/component/CanvasRenderer.tsx
index c78238df90..eeaaed56c1 100644
--- a/js/app/packages/block-canvas/component/CanvasRenderer.tsx
+++ b/js/app/packages/block-canvas/component/CanvasRenderer.tsx
@@ -180,7 +180,7 @@ export function CanvasRenderer() {
lineSelection: lineSelectionLayerRef,
})}
>
- <div class="absolute inset-0 w-full h-full pointer-events-none bracket-never">
+ <div class="absolute inset-0 w-full h-full pointer-events-none">
<DotPattern scale={scale} x={canvasX} y={canvasY} />
</div>
diff --git a/js/app/packages/block-chat/component/Block.tsx b/js/app/packages/block-chat/component/Block.tsx
index b5b23f5f31..945aa911d6 100644
--- a/js/app/packages/block-chat/component/Block.tsx
+++ b/js/app/packages/block-chat/component/Block.tsx
@@ -18,7 +18,7 @@ export default function ChatBlock() {
return (
<DocumentBlockContainer title={name()}>
- <div class="size-full bracket-never" tabIndex={-1}>
+ <div class="size-full" tabIndex={-1}>
<DebouncedNotificationReadMarker
notificationSource={notificationSource}
entity={{ type: 'chat', id: blockId }}
diff --git a/js/app/packages/block-email/component/BaseInput.tsx b/js/app/packages/block-email/component/BaseInput.tsx
index f806b017de..626aa4608a 100644
--- a/js/app/packages/block-email/component/BaseInput.tsx
+++ b/js/app/packages/block-email/component/BaseInput.tsx
@@ -1597,7 +1597,7 @@ export function BaseInput(props: {
</For>
</div>
</div>
- <div class="flex flex-row w-full h-8 justify-between items-center py-2 px-2 mb-2 space-x-2 allow-css-brackets">
+ <div class="flex flex-row w-full h-8 justify-between items-center py-2 px-2 mb-2 space-x-2">
<div class="flex flex-row items-center gap-1">
<div class="relative">
<Button
diff --git a/js/app/packages/block-email/component/Block.tsx b/js/app/packages/block-email/component/Block.tsx
index 4b40ed83eb..536ee786cd 100644
--- a/js/app/packages/block-email/component/Block.tsx
+++ b/js/app/packages/block-email/component/Block.tsx
@@ -31,7 +31,7 @@ export default function BlockEmail() {
return (
<Suspense>
<DocumentBlockContainer title={title() ?? 'Email'}>
- <div class="size-full bracket-never" tabIndex={-1}>
+ <div class="size-full" tabIndex={-1}>
<Show when={blockData()}>
<Show when={threadId()}>
{(id) => (
diff --git a/js/app/packages/block-email/component/MessageList.tsx b/js/app/packages/block-email/component/MessageList.tsx
index b03317b22f..c3d5e7ddb6 100644
--- a/js/app/packages/block-email/component/MessageList.tsx
+++ b/js/app/packages/block-email/component/MessageList.tsx
@@ -25,7 +25,7 @@ export function MessageList(props: MessageListProps) {
return (
<div
- class="pt-2 w-full flex flex-col-reverse items-center overflow-y-scroll overflow-x-hidden suppress-css-brackets hide-scrollbar text-sm"
+ class="pt-2 w-full flex flex-col-reverse items-center overflow-y-scroll overflow-x-hidden hide-scrollbar text-sm"
ref={context.registerMessagesList}
onscroll={(e) => {
// Since the list is reversed, calculate scroll from visual top
diff --git a/js/app/packages/block-email/component/compose/ComposeRecipients.tsx b/js/app/packages/block-email/component/compose/ComposeRecipients.tsx
index bdc7fb729b..901272fce7 100644
--- a/js/app/packages/block-email/component/compose/ComposeRecipients.tsx
+++ b/js/app/packages/block-email/component/compose/ComposeRecipients.tsx
@@ -124,7 +124,6 @@ export function ComposeRecipients(props: {
placeholder="Macro users or email addresses"
focusOnMount={ctx.focusRecipientsOnMount}
hideBorder
- noBrackets
disabled={ctx.disabled()}
includeSelf={ctx.includeSelf}
onChipDragStart={(option, e) => handleChipDragStart('to', option, e)}
@@ -153,7 +152,6 @@ export function ComposeRecipients(props: {
setSelectedOptions={(next) => ctx.setRecipients('cc', next)}
placeholder="Macro users or email addresses"
hideBorder
- noBrackets
disabled={ctx.disabled()}
onChipDragStart={(option, e) =>
handleChipDragStart('cc', option, e)
@@ -179,7 +177,6 @@ export function ComposeRecipients(props: {
setSelectedOptions={(next) => ctx.setRecipients('bcc', next)}
placeholder="Macro users or email addresses"
hideBorder
- noBrackets
disabled={ctx.disabled()}
onChipDragStart={(option, e) =>
handleChipDragStart('bcc', option, e)
diff --git a/js/app/packages/block-email/component/compose/ComposeToolbar.tsx b/js/app/packages/block-email/component/compose/ComposeToolbar.tsx
index 817701d856..4033cf5b70 100644
--- a/js/app/packages/block-email/component/compose/ComposeToolbar.tsx
+++ b/js/app/packages/block-email/component/compose/ComposeToolbar.tsx
@@ -85,7 +85,7 @@ export function EmailComposeToolbar(props: {
/>
</div>
</Show>
- <div class="flex flex-row w-full h-8 justify-between items-center space-x-2 allow-css-brackets mt-2">
+ <div class="flex flex-row w-full h-8 justify-between items-center space-x-2 mt-2">
<Show
when={!isMobile()}
fallback={
diff --git a/js/app/packages/block-md/component/Block.tsx b/js/app/packages/block-md/component/Block.tsx
index 646a9936a7..b5ac0afdbe 100644
--- a/js/app/packages/block-md/component/Block.tsx
+++ b/js/app/packages/block-md/component/Block.tsx
@@ -32,7 +32,7 @@ export default function BlockMarkdown() {
return (
<DocumentBlockContainer>
<div
- class="w-full h-full select-none overscroll-none overflow-hidden flex flex-col relative bracket-never"
+ class="w-full h-full select-none overscroll-none overflow-hidden flex flex-col relative"
tabIndex={-1}
>
<ModalsProvider>
diff --git a/js/app/packages/block-md/component/ComposeTask.tsx b/js/app/packages/block-md/component/ComposeTask.tsx
index 49a121076e..e666e59505 100644
--- a/js/app/packages/block-md/component/ComposeTask.tsx
+++ b/js/app/packages/block-md/component/ComposeTask.tsx
@@ -613,7 +613,7 @@ export function ComposeTask(props: ComposeTaskProps) {
return (
<div
- class="flex flex-col relative bracket-never h-full max-h-full min-h-0"
+ class="flex flex-col relative h-full max-h-full min-h-0"
tabIndex={-1}
ref={setContainerRef}
>
diff --git a/js/app/packages/block-md/component/History.tsx b/js/app/packages/block-md/component/History.tsx
index a030888a18..5b1347bcba 100644
--- a/js/app/packages/block-md/component/History.tsx
+++ b/js/app/packages/block-md/component/History.tsx
@@ -251,10 +251,7 @@ export function History(props: HistoryProps) {
};
return (
- <div
- class="w-full h-full p-2 flex flex-col gap-2 pb-12 suppress-css-bracket"
- tabindex={-1}
- >
+ <div class="w-full h-full p-2 flex flex-col gap-2 pb-12" tabindex={-1}>
<Suspense fallback={'loading...'}>
<Show when={selectedVersion()}>
{(selectedVersion) => {
@@ -283,7 +280,7 @@ export function History(props: HistoryProps) {
}}
</Show>
<div
- class="w-full h-[50%] overflow-y-scroll border border-edge suppress-css-bracket"
+ class="w-full h-[50%] overflow-y-scroll border border-edge"
tabindex={-1}
ref={(ref) => {
ref.focus();
@@ -401,7 +398,7 @@ function DocumentPreview(props: {
);
return (
- <div class="w-full h-full supress-css-bracket p-2">
+ <div class="w-full h-full p-2">
<LexicalWrapperContext.Provider value={props.lexicalWrapper}>
<Show when={props.isSelectedVersionEmpty}>
<div class="w-full h-full flex items-center justify-center">
diff --git a/js/app/packages/block-pdf/component/PageNumberInput.tsx b/js/app/packages/block-pdf/component/PageNumberInput.tsx
index f7e0df8004..f34cd5d3a1 100644
--- a/js/app/packages/block-pdf/component/PageNumberInput.tsx
+++ b/js/app/packages/block-pdf/component/PageNumberInput.tsx
@@ -64,7 +64,7 @@ export function PageNumberInput() {
class="flex flex-row items-center justify-center"
onClick={() => inputRef?.select()}
>
- <div class="px-1 hover:bg-hover hover-transition-bg cursor-default focus:bracket">
+ <div class="px-1 hover:bg-hover hover-transition-bg cursor-default focus-within:bg-active">
<input
class={cn(
'py-0.5 px-0 text-sm bg-transparent text-ink font-medium cursor-default text-center border-none flex-initial focus:bg-input',
diff --git a/js/app/packages/block-project/component/ProjectCreateMenu.tsx b/js/app/packages/block-project/component/ProjectCreateMenu.tsx
index 4ef2fcf709..074e1e4a0a 100644
--- a/js/app/packages/block-project/component/ProjectCreateMenu.tsx
+++ b/js/app/packages/block-project/component/ProjectCreateMenu.tsx
@@ -263,7 +263,7 @@ function MenuItem(props: MenuItemProps) {
return (
<DropdownMenu.Item
class={cn(
- 'flex justify-between items-center gap-12 px-1.5 py-1 text-sm isolate transition-transform ease-click duration-200 text-ink-extra-muted data-highlighted:bracket-offset-4',
+ 'flex justify-between items-center gap-12 px-1.5 py-1 text-sm isolate transition-transform ease-click duration-200 text-ink-extra-muted outline-none data-highlighted:bg-active',
`data-highlighted:${selectedColor}`
)}
onSelect={props.action}
@@ -296,7 +296,7 @@ function MenuContent(props: { projectId: string }) {
}));
return (
- <DropdownMenu.Content class="isolate relative flex flex-col gap-2 bg-dialog -mb-1 p-2 border-2 border-accent min-w-max bracket-never">
+ <DropdownMenu.Content class="isolate relative flex flex-col gap-2 bg-dialog -mb-1 p-2 border-2 border-accent min-w-max">
<For each={items}>
{(item, index) => <MenuItem {...item} index={index() + 1} />}
</For>
diff --git a/js/app/packages/channel/Call/CallDeviceList.tsx b/js/app/packages/channel/Call/CallDeviceList.tsx
index 4a86c5916b..c39eac8c8d 100644
--- a/js/app/packages/channel/Call/CallDeviceList.tsx
+++ b/js/app/packages/channel/Call/CallDeviceList.tsx
@@ -6,7 +6,7 @@ import type { MediaDeviceInfo } from './CallContext';
import { cn } from '@ui/utils/classname';
const deviceRadioRowClass =
- 'flex min-w-0 items-center gap-2 w-full py-1 pl-2 pr-2 text-sm font-medium rounded-xs cursor-pointer hover:bg-hover hover-transition-bg focus-bracket';
+ 'flex min-w-0 items-center gap-2 w-full py-1 pl-2 pr-2 text-sm font-medium rounded-xs cursor-pointer hover:bg-hover hover-transition-bg outline-none focus:bg-active data-[highlighted]:bg-active';
/** Device picker rows for use inside `DropdownMenu` + `DropdownMenuContent` only. */
export function CallDeviceList(props: {
diff --git a/js/app/packages/channel/Channel/Channel.tsx b/js/app/packages/channel/Channel/Channel.tsx
index eaea2f2f4e..7e084ea442 100644
--- a/js/app/packages/channel/Channel/Channel.tsx
+++ b/js/app/packages/channel/Channel/Channel.tsx
@@ -373,7 +373,7 @@ export function Channel(props: ChannelProps) {
<MaybeMessageActionDrawerManager>
<ChannelDropZone dragState={dragState}>
<div
- class="ph-no-capture relative flex-1 min-h-0 suppress-css-brackets suppress-css-bracket outline-none"
+ class="ph-no-capture relative flex-1 min-h-0 outline-none"
ref={(element) => {
setMessageListElement(element);
attachMessageListRef(element);
diff --git a/js/app/packages/channel/Input/Footer.tsx b/js/app/packages/channel/Input/Footer.tsx
index d3e070349d..231f219e77 100644
--- a/js/app/packages/channel/Input/Footer.tsx
+++ b/js/app/packages/channel/Input/Footer.tsx
@@ -7,7 +7,7 @@ export function Footer(props: JSX.HTMLAttributes<HTMLDivElement>) {
return (
<div
class={cn(
- 'flex flex-row w-full h-8 justify-between items-center p-2 mb-2 space-x-2 allow-css-brackets',
+ 'flex flex-row w-full h-8 justify-between items-center p-2 mb-2 space-x-2',
local.class
)}
data-input-footer
diff --git a/js/app/packages/channel/Message/ActionMenu.tsx b/js/app/packages/channel/Message/ActionMenu.tsx
index 03954f60f2..db7355e1fe 100644
--- a/js/app/packages/channel/Message/ActionMenu.tsx
+++ b/js/app/packages/channel/Message/ActionMenu.tsx
@@ -128,7 +128,7 @@ export function ActionMenu(props: ActionMenuProps) {
<Show when={hasReactAction() || visibleActions.length > 0}>
<HoverActions class={props.class} persistentVisible={emojiMenuOpen()}>
<div
- class="flex flex-row bg-menu border border-edge-muted items-center allow-css-brackets -space-x-1"
+ class="flex flex-row bg-menu border border-edge-muted items-center -space-x-1"
onClick={(e) => e.stopPropagation()}
>
<Show when={hasReactAction()}>
diff --git a/js/app/packages/channel/Message/Attachments.tsx b/js/app/packages/channel/Message/Attachments.tsx
index a3c4038efc..64f0474519 100644
--- a/js/app/packages/channel/Message/Attachments.tsx
+++ b/js/app/packages/channel/Message/Attachments.tsx
@@ -33,10 +33,7 @@ export function Attachments(props: AttachmentsProps) {
return (
<Show when={shouldRender()}>
- <div
- class={cn('allow-css-brackets mb-2', props.class)}
- data-message-attachments
- >
+ <div class={cn('mb-2', props.class)} data-message-attachments>
<Show when={mediaItems().length > 0}>
<MediaPreview items={mediaItems()} />
</Show>
diff --git a/js/app/packages/channel/Participants/ParticipantsAddPanel.tsx b/js/app/packages/channel/Participants/ParticipantsAddPanel.tsx
index 9889e3e799..e505830fbb 100644
--- a/js/app/packages/channel/Participants/ParticipantsAddPanel.tsx
+++ b/js/app/packages/channel/Participants/ParticipantsAddPanel.tsx
@@ -45,7 +45,6 @@ export function ParticipantsAddPanel(props: {
options={options}
hideBorder
noPadding
- noBrackets
/>
</div>
<button
diff --git a/js/app/packages/channel/Thread/ThreadCollapsedIndicator.tsx b/js/app/packages/channel/Thread/ThreadCollapsedIndicator.tsx
index df61978615..fac1e49e7f 100644
--- a/js/app/packages/channel/Thread/ThreadCollapsedIndicator.tsx
+++ b/js/app/packages/channel/Thread/ThreadCollapsedIndicator.tsx
@@ -41,7 +41,7 @@ export function ThreadCollapsedIndicator(props: ThreadCollapsedIndicatorProps) {
<button
type="button"
class={cn(
- 'flex flex-row gap-2 items-center text-xs w-fit h-(--user-icon-width) touch:min-h-(--user-icon-width) border bg-menu hover:bg-hover hover-transition-bg pr-2 pl-1 mb-2 select-none focus:bracket-offset-2',
+ 'flex flex-row gap-2 items-center text-xs w-fit h-(--user-icon-width) touch:min-h-(--user-icon-width) border bg-menu hover:bg-hover hover-transition-bg pr-2 pl-1 mb-2 select-none outline-none focus:bg-active',
local.hasNewMessages ? 'border-accent' : 'border-edge-muted',
local.class
)}
diff --git a/js/app/packages/channel/Thread/ThreadReplyButton.tsx b/js/app/packages/channel/Thread/ThreadReplyButton.tsx
index 3b42d828f0..dfd74dce11 100644
--- a/js/app/packages/channel/Thread/ThreadReplyButton.tsx
+++ b/js/app/packages/channel/Thread/ThreadReplyButton.tsx
@@ -14,7 +14,7 @@ export function ThreadReplyButton(props: ThreadReplyButtonProps) {
<button
type="button"
class={cn(
- 'w-min icon-plus allow-css-brackets mb-2 border border-edge-muted bg-menu hover:bg-hover hover-transition-bg flex flex-row justify-center items-center size-(--user-icon-width) touch:min-h-(--user-icon-width) touch:min-w-(--user-icon-width) text-ink-muted',
+ 'w-min icon-plus mb-2 border border-edge-muted bg-menu hover:bg-hover hover-transition-bg flex flex-row justify-center items-center size-(--user-icon-width) touch:min-h-(--user-icon-width) touch:min-w-(--user-icon-width) text-ink-muted',
local.class
)}
ref={(el) => {
diff --git a/js/app/packages/core/component/FormControls/DeprecatedButton.tsx b/js/app/packages/core/component/FormControls/DeprecatedButton.tsx
index 9f484c8740..15fb90a552 100644
--- a/js/app/packages/core/component/FormControls/DeprecatedButton.tsx
+++ b/js/app/packages/core/component/FormControls/DeprecatedButton.tsx
@@ -42,7 +42,7 @@ export const DeprecatedButton: ParentComponent<{
const hasHotkey = () => !!(props.hotkeyShortcut || props.hotkeyToken);
return (
<Polymorphic
- class="relative flex items-stretch hover:opacity-80 disabled:opacity-50 focus:[--focus-border-inset:-4px] font-mono font-medium uppercase leading-none disabled:cursor-not-allowed"
+ class="relative flex items-stretch hover:opacity-80 disabled:opacity-50 font-mono font-medium uppercase leading-none disabled:cursor-not-allowed outline-none focus-visible:bg-active"
classList={{
[`${sizeClass[props.size || 'Base']}`]: !hasHotkey(),
[`${themeClass[props.theme || 'primary']}`]: !hasHotkey(),
diff --git a/js/app/packages/core/component/FormControls/MiniToggleSwitch.tsx b/js/app/packages/core/component/FormControls/MiniToggleSwitch.tsx
index d3bb214f4f..9b2b5202fe 100644
--- a/js/app/packages/core/component/FormControls/MiniToggleSwitch.tsx
+++ b/js/app/packages/core/component/FormControls/MiniToggleSwitch.tsx
@@ -86,7 +86,7 @@ export const MiniToggleSwitch: Component<
</KSwitch.Label>
</Show>
- <div class="relative focus-bracket-within focus-within:[--focus-border-inset:-3px] w-fit h-fit">
+ <div class="relative w-fit h-fit rounded-full focus-within:bg-active">
<KSwitch.Input class="absolute inset-0 h-full! w-full! pointer-events-none" />
<KSwitch.Control class="relative">
<div
diff --git a/js/app/packages/core/component/FormControls/SegmentControls.tsx b/js/app/packages/core/component/FormControls/SegmentControls.tsx
index 385838aba9..1f834f5b6c 100644
--- a/js/app/packages/core/component/FormControls/SegmentControls.tsx
+++ b/js/app/packages/core/component/FormControls/SegmentControls.tsx
@@ -87,7 +87,7 @@ export const SegmentedControl: ParentComponent<
return (
<KSegmentedControl.Item
value={itemValue()}
- class="relative focus-bracket-within focus-within:[--focus-border-inset:-3px] -ml-px first:ml-0"
+ class="relative -ml-px first:ml-0 focus-within:bg-active"
disabled={props.disabled}
>
<KSegmentedControl.ItemInput class="absolute inset-0 h-full! w-full! pointer-events-none" />
diff --git a/js/app/packages/core/component/FormControls/ToggleButton.tsx b/js/app/packages/core/component/FormControls/ToggleButton.tsx
index f38bb34b33..6fc69d5ae3 100644
--- a/js/app/packages/core/component/FormControls/ToggleButton.tsx
+++ b/js/app/packages/core/component/FormControls/ToggleButton.tsx
@@ -70,7 +70,7 @@ export const ToggleButton: ParentComponent<
return (
<KToggleButton
class={cn(
- 'w-fit disabled:opacity-50 disabled:cursor-not-allowed disabled:pointer-events-none focus:disabled:[--focus-border-inset:0] focus:[--focus-border-inset:-3px]',
+ 'w-fit disabled:opacity-50 disabled:cursor-not-allowed disabled:pointer-events-none outline-none focus-visible:bg-active',
props.class
)}
classList={props.classList}
diff --git a/js/app/packages/core/component/FormControls/ToggleSwitch.tsx b/js/app/packages/core/component/FormControls/ToggleSwitch.tsx
index acacc36c56..faa76c5967 100644
--- a/js/app/packages/core/component/FormControls/ToggleSwitch.tsx
+++ b/js/app/packages/core/component/FormControls/ToggleSwitch.tsx
@@ -91,7 +91,7 @@ export const ToggleSwitch: Component<
</KSwitch.Label>
</Show>
- <div class="relative focus-bracket-within focus-within:[--focus-border-inset:-3px] w-fit h-fit">
+ <div class="relative w-fit h-fit rounded-full focus-within:bg-active">
<KSwitch.Input class="absolute inset-0 h-full! w-full! pointer-events-none" />
<KSwitch.Control
classList={{
diff --git a/js/app/packages/core/component/ForwardToChannel.tsx b/js/app/packages/core/component/ForwardToChannel.tsx
index 8d6c1378e0..802e766955 100644
--- a/js/app/packages/core/component/ForwardToChannel.tsx
+++ b/js/app/packages/core/component/ForwardToChannel.tsx
@@ -72,7 +72,6 @@ function MobileForwardToChannelLayout(
triedToSubmit={props.triedToSubmit}
options={props.destinationOptions}
triggerMode="input"
- noBrackets
class="border-1 border-edge-muted p-1"
focusOnMount
/>
@@ -449,7 +448,6 @@ export function ForwardToChannel(props: ForwardToChannelProps) {
triedToSubmit={triedToSubmit}
options={destinationOptions}
triggerMode="input"
- noBrackets
class="border border-edge-muted p-1"
focusOnMount
horizontalScroll
diff --git a/js/app/packages/core/component/LexicalMarkdown/component/decorator/ContactMention.tsx b/js/app/packages/core/component/LexicalMarkdown/component/decorator/ContactMention.tsx
index 878d2e49b8..f57aafb529 100644
--- a/js/app/packages/core/component/LexicalMarkdown/component/decorator/ContactMention.tsx
+++ b/js/app/packages/core/component/LexicalMarkdown/component/decorator/ContactMention.tsx
@@ -106,7 +106,7 @@ export function ContactMention(props: ContactMentionDecoratorProps) {
ref={mentionRef}
class={cn(
'relative py-0.5 px-0.5 cursor-default rounded-xs bg-accent/8 hover:bg-accent/20 focus:bg-accent/20 text-accent-ink',
- isSelectedAsNode() && 'bracket-offset-2'
+ isSelectedAsNode() && 'bg-active'
)}
{...navHandlers}
onMouseEnter={() => setPopupOpen(true)}
diff --git a/js/app/packages/core/component/LexicalMarkdown/component/decorator/DateMention.tsx b/js/app/packages/core/component/LexicalMarkdown/component/decorator/DateMention.tsx
index 5d3b8678c0..531bc1c8e3 100644
--- a/js/app/packages/core/component/LexicalMarkdown/component/decorator/DateMention.tsx
+++ b/js/app/packages/core/component/LexicalMarkdown/component/decorator/DateMention.tsx
@@ -115,7 +115,7 @@ export function DateMention(props: DateMentionDecoratorProps) {
ref={mentionRef}
class="relative py-0.5 px-0.5 rounded-xs bg-accent/8 hover:bg-accent/20 focus:bg-accent/20 text-accent-ink cursor-default"
classList={{
- 'bracket-offset-2': isSelectedAsNode(),
+ 'bg-active': isSelectedAsNode(),
}}
onClick={() => setDatePickerOpen(true)}
onMouseEnter={() => setHovered(true)}
diff --git a/js/app/packages/core/component/LexicalMarkdown/component/decorator/DocumentMention.tsx b/js/app/packages/core/component/LexicalMarkdown/component/decorator/DocumentMention.tsx
index 3eaa9833b7..d249f570b8 100644
--- a/js/app/packages/core/component/LexicalMarkdown/component/decorator/DocumentMention.tsx
+++ b/js/app/packages/core/component/LexicalMarkdown/component/decorator/DocumentMention.tsx
@@ -508,7 +508,7 @@ export function DocumentMentionInner(props: DocumentMentionDecoratorProps) {
<span
class="w-full h-full py-0.5 cursor-default rounded-xs hover:bg-hover focus:bg-active"
classList={{
- 'bg-active text-ink bracket bracket-offset-2': isSelectedAsNode(),
+ 'bg-active text-ink': isSelectedAsNode(),
}}
style={{
'user-select': 'inherit',
diff --git a/js/app/packages/core/component/LexicalMarkdown/component/decorator/GroupMention.tsx b/js/app/packages/core/component/LexicalMarkdown/component/decorator/GroupMention.tsx
index 3f43f69690..c6ac9c559e 100644
--- a/js/app/packages/core/component/LexicalMarkdown/component/decorator/GroupMention.tsx
+++ b/js/app/packages/core/component/LexicalMarkdown/component/decorator/GroupMention.tsx
@@ -17,7 +17,7 @@ export function GroupMention(props: GroupMentionDecoratorProps) {
<span
class={cn(
'relative py-0.5 px-0.5 cursor-default rounded-xs bg-accent/8 hover:bg-accent/20 focus:bg-accent/20 text-accent-ink',
- isSelectedAsNode() && 'bracket-offset-2'
+ isSelectedAsNode() && 'bg-active'
)}
>
<span data-group-alias={props.groupAlias} data-group-mention="true">
diff --git a/js/app/packages/core/component/LexicalMarkdown/component/decorator/MarkdownImage.tsx b/js/app/packages/core/component/LexicalMarkdown/component/decorator/MarkdownImage.tsx
index 2f959770c9..ea07704d45 100644
--- a/js/app/packages/core/component/LexicalMarkdown/component/decorator/MarkdownImage.tsx
+++ b/js/app/packages/core/component/LexicalMarkdown/component/decorator/MarkdownImage.tsx
@@ -269,7 +269,7 @@ export function MarkdownImage(props: ImageDecoratorProps) {
ref={containerRef}
class={cn(
'relative max-w-full my-4 grid place-items-center',
- isSelectedAsNode() && 'bracket-offset-4 ring-3 ring-edge-muted',
+ isSelectedAsNode() && 'ring-3 ring-edge-muted',
state() === 'error' && 'media-error min-h-44',
// If there are no constrained dimensions, center the image
!props.constrainedWidth && !props.constrainedHeight && 'mx-auto'
diff --git a/js/app/packages/core/component/LexicalMarkdown/component/decorator/MarkdownVideo.tsx b/js/app/packages/core/component/LexicalMarkdown/component/decorator/MarkdownVideo.tsx
index 31046c32f0..b8b5663210 100644
--- a/js/app/packages/core/component/LexicalMarkdown/component/decorator/MarkdownVideo.tsx
+++ b/js/app/packages/core/component/LexicalMarkdown/component/decorator/MarkdownVideo.tsx
@@ -254,7 +254,7 @@ export function MarkdownVideo(props: VideoDecoratorProps) {
ref={containerRef}
class={cn(
'relative max-w-full my-4 grid place-items-center mx-auto',
- isSelectedAsNode() && 'bracket-offset-4 ring-3 ring-edge-muted',
+ isSelectedAsNode() && 'ring-3 ring-edge-muted',
state() === 'error' && 'media-error min-h-44'
)}
style={{
diff --git a/js/app/packages/core/component/LexicalMarkdown/component/decorator/Snapshot.tsx b/js/app/packages/core/component/LexicalMarkdown/component/decorator/Snapshot.tsx
index cac88af941..36947311ca 100644
--- a/js/app/packages/core/component/LexicalMarkdown/component/decorator/Snapshot.tsx
+++ b/js/app/packages/core/component/LexicalMarkdown/component/decorator/Snapshot.tsx
@@ -172,7 +172,7 @@ function SnapshotInner(props: SnapshotDecoratorProps) {
<span
class="w-full h-full py-0.5 cursor-default rounded-xs hover:bg-hover focus:bg-active"
classList={{
- 'bg-active text-ink bracket bracket-offset-2': isSelectedAsNode(),
+ 'bg-active text-ink': isSelectedAsNode(),
}}
style={{
'user-select': 'inherit',
diff --git a/js/app/packages/core/component/LexicalMarkdown/component/decorator/UnknownMention.tsx b/js/app/packages/core/component/LexicalMarkdown/component/decorator/UnknownMention.tsx
index db63594bad..6c4050d72d 100644
--- a/js/app/packages/core/component/LexicalMarkdown/component/decorator/UnknownMention.tsx
+++ b/js/app/packages/core/component/LexicalMarkdown/component/decorator/UnknownMention.tsx
@@ -17,7 +17,7 @@ export function UnknownMention(props: UnknownMentionDecoratorProps) {
<span
class="relative py-0.5 px-0.5 cursor-default text-ink-muted/50"
classList={{
- 'bracket-offset-2': isSelectedAsNode(),
+ 'bg-active': isSelectedAsNode(),
}}
>
<span class="relative top-[0.125em] size-[1em] inline-flex mx-1 opacity-50">
diff --git a/js/app/packages/core/component/LexicalMarkdown/component/decorator/UserMention.tsx b/js/app/packages/core/component/LexicalMarkdown/component/decorator/UserMention.tsx
index 8e92f58f2c..eaed16d9a1 100644
--- a/js/app/packages/core/component/LexicalMarkdown/component/decorator/UserMention.tsx
+++ b/js/app/packages/core/component/LexicalMarkdown/component/decorator/UserMention.tsx
@@ -17,7 +17,7 @@ export function UserMention(props: UserMentionDecoratorProps) {
<span
class={cn(
'relative py-0.5 px-0.5 cursor-default rounded-xs bg-accent/8 hover:bg-accent/20 focus:bg-accent/20 text-accent-ink',
- isSelectedAsNode() && 'bracket-offset-2'
+ isSelectedAsNode() && 'bg-active'
)}
>
<span
diff --git a/js/app/packages/core/component/LexicalMarkdown/component/misc/MentionsTextarea.tsx b/js/app/packages/core/component/LexicalMarkdown/component/misc/MentionsTextarea.tsx
index f354165db0..54750b73bc 100644
--- a/js/app/packages/core/component/LexicalMarkdown/component/misc/MentionsTextarea.tsx
+++ b/js/app/packages/core/component/LexicalMarkdown/component/misc/MentionsTextarea.tsx
@@ -168,10 +168,7 @@ export function MentionsTextarea(props: MentionsTextareaProps) {
return (
<LexicalWrapperContext.Provider value={props.wrapper}>
<div
- class={cn(
- 'relative w-full h-full overflow-auto min-h-8 supress-css-brackets',
- props.class
- )}
+ class={cn('relative w-full h-full overflow-auto min-h-8', props.class)}
on:keydown={(e) => {
e.stopPropagation();
}}
@@ -186,7 +183,7 @@ export function MentionsTextarea(props: MentionsTextareaProps) {
}}
>
<div
- class="h-full min-h-8 max-h-24 overflow-y-auto supress-css-brackets"
+ class="h-full min-h-8 max-h-24 overflow-y-auto"
ref={mountRef}
contentEditable
/>
diff --git a/js/app/packages/core/component/Menu.tsx b/js/app/packages/core/component/Menu.tsx
index 5502b0fb60..e6a27dd39d 100644
--- a/js/app/packages/core/component/Menu.tsx
+++ b/js/app/packages/core/component/Menu.tsx
@@ -130,7 +130,7 @@ export type MenuItemProps =
| CheckboxMenuItemProps
| RadioMenuItemProps;
-export const MENU_ITEM_CLASS = `flex flex-row w-full gap-1.5 tracking-tight ${isMobile() ? 'py-2 px-1 text-base' : 'py-1 pl-2 pr-2 text-sm'} font-medium justify-between items-center focus-bracket rounded-xs`;
+export const MENU_ITEM_CLASS = `flex flex-row w-full gap-1.5 tracking-tight ${isMobile() ? 'py-2 px-1 text-base' : 'py-1 pl-2 pr-2 text-sm'} font-medium justify-between items-center rounded-xs outline-none focus:bg-active data-[highlighted]:bg-active`;
/**
* A menu item component that can be used interchangeably within either a ContextMenu or DropdownMenu.
diff --git a/js/app/packages/core/component/Message.tsx b/js/app/packages/core/component/Message.tsx
index 36b315fa9e..0eb3e218de 100644
--- a/js/app/packages/core/component/Message.tsx
+++ b/js/app/packages/core/component/Message.tsx
@@ -218,7 +218,7 @@ const Root: Component<MessageRootProps> = (props) => {
return (
<MessageContext.Provider value={ctx}>
<div
- class="relative flex flex-row items-stretch w-full suppress-css-brackets transition-colors duration-1000 ease"
+ class="relative flex flex-row items-stretch w-full transition-colors duration-1000 ease"
classList={{
'bg-accent': props.isTarget,
}}
@@ -379,7 +379,7 @@ const Root: Component<MessageRootProps> = (props) => {
when={props.shouldShowThreadAppendInput}
fallback={
<div
- class="w-min -translate-x-1/2 icon-plus allow-css-brackets"
+ class="w-min -translate-x-1/2 icon-plus"
style={{
'margin-left': `calc(var(--thread-shift) + var(--left-of-connector))`,
}}
diff --git a/js/app/packages/core/component/Properties/component/modal/SelectPropertyModal.tsx b/js/app/packages/core/component/Properties/component/modal/SelectPropertyModal.tsx
index f409fd6b01..1048422197 100644
--- a/js/app/packages/core/component/Properties/component/modal/SelectPropertyModal.tsx
+++ b/js/app/packages/core/component/Properties/component/modal/SelectPropertyModal.tsx
@@ -198,8 +198,8 @@ export function SelectPropertyModal(props: PropertySelectorProps) {
type="button"
id={`select-property-option-${index()}`}
class={cn(
- 'flex flex-row w-full items-center gap-2 py-1.5 px-2 scroll-my-1 bracket-never',
- isFocused(index()) && 'bg-hover'
+ 'flex flex-row w-full items-center gap-2 py-1.5 px-2 scroll-my-1',
+ isFocused(index()) && 'bg-active'
)}
onClick={() => addProperty(property.id)}
onMouseEnter={() => setFocusedIndex(index())}
diff --git a/js/app/packages/core/component/Properties/component/panel/PropertyLabel.tsx b/js/app/packages/core/component/Properties/component/panel/PropertyLabel.tsx
index 1504d2c750..d18a2cc0f9 100644
--- a/js/app/packages/core/component/Properties/component/panel/PropertyLabel.tsx
+++ b/js/app/packages/core/component/Properties/component/panel/PropertyLabel.tsx
@@ -159,7 +159,7 @@ export const PropertyLabel: Component<PropertyLabelProps> = (props) => {
>
<Dialog.Portal>
<DialogWrapper>
- <div class="flex flex-col overflow-hidden bracket-never text-sm">
+ <div class="flex flex-col overflow-hidden text-sm">
<div class="flex items-center justify-between gap-2 bg-panel px-2 h-10 border-b border-edge-muted shrink-0">
<Dialog.Title class="pl-2 text-sm font-medium">
Delete Property
diff --git a/js/app/packages/core/component/RecipientSelector.tsx b/js/app/packages/core/component/RecipientSelector.tsx
index 4caf55691a..43f8c945c8 100644
--- a/js/app/packages/core/component/RecipientSelector.tsx
+++ b/js/app/packages/core/component/RecipientSelector.tsx
@@ -240,7 +240,6 @@ type RecipientSelectorProps<K extends CombinedRecipientKind> = {
triggerMode?: ComboboxTriggerMode;
hideBorder?: boolean;
noPadding?: boolean;
- noBrackets?: boolean;
includeSelf?: boolean;
disabled?: boolean;
onChipDragStart?: (option: WithCustomUserInput<K>, e: DragEvent) => void;
@@ -482,10 +481,9 @@ export function RecipientSelector<K extends CombinedRecipientKind>(
: undefined
}
class={cn(
- 'ph-no-capture w-full text-sm offset-2 bg-input',
+ 'ph-no-capture w-full text-sm offset-2 bg-input focus-within:bg-active',
!props.hideBorder && 'border border-edge',
!props.noPadding && 'py-2',
- !props.noBrackets && 'focus-within:bracket-offset-2',
props.class
)}
>
diff --git a/js/app/packages/core/component/TopBar/ShareButton.tsx b/js/app/packages/core/component/TopBar/ShareButton.tsx
index ff5278a3ea..5ef8f50822 100644
--- a/js/app/packages/core/component/TopBar/ShareButton.tsx
+++ b/js/app/packages/core/component/TopBar/ShareButton.tsx
@@ -1452,7 +1452,7 @@ export function ShareOptions(props: {
return (
<DropdownMenu.RadioItem
value={option.value}
- class="flex items-center gap-2 w-full py-1 pl-2 pr-2 text-sm font-medium rounded-xs cursor-pointer hover:bg-hover hover-transition-bg focus-bracket"
+ class="flex items-center gap-2 w-full py-1 pl-2 pr-2 text-sm font-medium rounded-xs cursor-pointer hover:bg-hover hover-transition-bg outline-none focus:bg-active data-[highlighted]:bg-active"
>
<div class="w-4 h-4 shrink-0">
{Icon && <Icon class="w-full h-full" />}
@@ -1469,7 +1469,7 @@ export function ShareOptions(props: {
<div class="my-1 border-t border-edge-muted w-full" />
<DropdownMenu.RadioItem
value="none"
- class="flex items-center gap-2 w-full py-1 pl-2 pr-2 text-sm font-medium rounded-xs cursor-pointer hover:bg-hover hover-transition-bg focus-bracket"
+ class="flex items-center gap-2 w-full py-1 pl-2 pr-2 text-sm font-medium rounded-xs cursor-pointer hover:bg-hover hover-transition-bg outline-none focus:bg-active data-[highlighted]:bg-active"
>
<div class="w-4 h-4 shrink-0">
<IconX class="w-full h-full" />
diff --git a/js/app/packages/core/internal/PixelArtIconDemo.tsx b/js/app/packages/core/internal/PixelArtIconDemo.tsx
index 462236f95a..1cafa07939 100644
--- a/js/app/packages/core/internal/PixelArtIconDemo.tsx
+++ b/js/app/packages/core/internal/PixelArtIconDemo.tsx
@@ -492,7 +492,7 @@ function GlyphGrid(props: GlyphGridProps) {
onDblClick={() => props.onEditGlyph(glyph)}
class="items-center border relative group transition-colors justify-self-stretch"
classList={{
- 'border-edge bg-edge bracket-offset-2': isSelected(),
+ 'border-edge bg-edge': isSelected(),
'border-edge bg-background hover:bg-edge': !isSelected(),
}}
>
diff --git a/js/app/packages/entity/src/components/CollapsibleList.tsx b/js/app/packages/entity/src/components/CollapsibleList.tsx
index 22ac2edc27..0bfc6af351 100644
--- a/js/app/packages/entity/src/components/CollapsibleList.tsx
+++ b/js/app/packages/entity/src/components/CollapsibleList.tsx
@@ -17,7 +17,7 @@ function ToggleButton(props: ToggleButtonProps) {
<div class="w-full flex items-center gap-2 my-2">
<button
type="button"
- class="flex items-center gap-1 text-xs bracket-never hover:text-accent"
+ class="flex items-center gap-1 text-xs hover:text-accent"
data-collapsible-toggle
data-collapsible-state={props.showAll ? 'expanded' : 'collapsed'}
onClick={props.toggle}
diff --git a/js/app/packages/entity/src/components/MultiSelectCheckbox.tsx b/js/app/packages/entity/src/components/MultiSelectCheckbox.tsx
index 4817faf82f..3fed7390af 100644
--- a/js/app/packages/entity/src/components/MultiSelectCheckbox.tsx
+++ b/js/app/packages/entity/src/components/MultiSelectCheckbox.tsx
@@ -17,7 +17,7 @@ export function MultiSelectCheckbox(props: MultiSelectCheckboxProps) {
return (
<button
type="button"
- class="size-full relative group/button flex items-center justify-center bracket-never"
+ class="size-full relative group/button flex items-center justify-center"
onMouseDown={(e) => {
e.stopPropagation();
}}
diff --git a/js/app/packages/ui/components/Button.tsx b/js/app/packages/ui/components/Button.tsx
index e691ea037b..38fbf64ef6 100644
--- a/js/app/packages/ui/components/Button.tsx
+++ b/js/app/packages/ui/components/Button.tsx
@@ -121,6 +121,7 @@ export const Button = <T extends ValidComponent = 'button'>(
const cls = () =>
cn(
'relative inline-flex items-center justify-center font-medium leading-none border border-transparent rounded-xs',
+ 'outline-none focus-visible:bg-active',
'data-disabled:cursor-not-allowed',
'touch:min-h-11 touch:min-w-11 touch:[&_svg]:size-6',
variantStyles[variant()],