Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .specs/status-indicator.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ category: feedback
structure: monolithic
status: implemented
spec_version: 1
checksum: 3075d5cccdeaeefd787f9b51f02690a868e0eb969278caea79915517e3943529
checksum: 39afb38b28af0204ddd14671bc3660e204be647480d82fc10511bf055fc6a53f
created: 2026-05-22
last_updated: 2026-05-28
last_updated: 2026-07-28
---
# Status Indicator — Component Spec

Expand Down Expand Up @@ -55,7 +55,6 @@ _none_
| Region | Token (DESIGN.md) |
|---|---|
| typography | .text-body-sm |
| surface | `var(--bg-surface)` |
| text | `var(--text-default)` |
| spacing | `var(--spacing-3)` |
| shape | `var(--shape-elements)` |
Expand Down
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.
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.
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.
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@

<template>
<InputText
size="small"
v-bind="$attrs"
:data-testid="testId"
class="flex-1"
size="small"
:model-value="globalFilter"
:placeholder="placeholder"
@update:model-value="setFilter"
Expand Down
27 changes: 27 additions & 0 deletions packages/webkit/src/components/data/table/table.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,33 @@ describe('Table (composition + data-driven)', () => {
expect(bodyCells).toContain('Alpha')
expect(bodyCells).not.toContain('Charlie')
})

// `size` is bound BEFORE v-bind="$attrs" on the inner InputText, so the
// default is a default rather than a hard-code. Bound after, it would
// clobber the consumer's value and a search field could never sit level
// with a row of large toolbar controls.
it('defaults to the small field but lets a consumer override the size', () => {
const treeWith = (attrs: string) =>
defineComponent({
components: { Table, TableSearch },
setup: () => ({ rows, columns }),
template: `
<Table :data="rows" :columns="columns">
<template #toolbar>
<TableSearch ${attrs} />
</template>
</Table>
`
})

const bare = render(treeWith(''))
const defaulted = within(bare.container).getByTestId('data-table__search')
expect(defaulted.closest('[data-size]')?.getAttribute('data-size')).toBe('small')

const overridden = render(treeWith('size="large"'))
const large = within(overridden.container).getByTestId('data-table__search')
expect(large.closest('[data-size]')?.getAttribute('data-size')).toBe('large')
})
})

describe('story fixtures (composeStories)', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
:data-testid="testId"
:data-severity="severity"
:data-loading="loading || null"
class="group inline-flex items-center gap-[var(--spacing-3)] rounded-[var(--shape-elements)] bg-[var(--bg-surface)] p-[var(--spacing-3)] text-body-sm text-[var(--text-default)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring-color)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--bg-canvas)]"
class="group inline-flex items-center gap-[var(--spacing-3)] rounded-[var(--shape-elements)] text-body-sm text-[var(--text-default)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring-color)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--bg-canvas)]"
>
<Spinner
v-if="loading"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div
v-bind="$attrs"
:data-testid="testId"
class="flex min-w-0 shrink-0 items-center justify-end gap-[var(--spacing-xs)]"
class="flex min-w-0 shrink items-center justify-end gap-[var(--spacing-xs)]"
>
<slot />
</div>
Expand Down
Loading