feat: Adds dataAttributes support to ButtonDropdown items #20454
Annotations
3 errors and 10 warnings
|
Build Repository
Process completed with exit code 1.
|
|
Build Repository:
src/__tests__/snapshot-tests/documenter.test.ts#L15
expect(received).toMatchSnapshot(hint)
Snapshot name: `Components definition for button-dropdown matches the snapshot: button-dropdown 1`
- Snapshot - 0
+ Received + 1
@@ -179,10 +179,11 @@
- `lang` (string) - (Optional) The language of the item, provided as a BCP 47 language tag.
- `disabled` (boolean) - whether the item is disabled. Disabled items are not clickable, but they can be highlighted with the keyboard to make them accessible.
- `disabledReason` (string) - (Optional) Displays text near the `text` property when item is disabled. Use to provide additional context.
- `description` (string) - additional data that will be passed to a `data-description` attribute. **Deprecated**, has no effect.
- `ariaLabel` (string) - (Optional) - ARIA label of the item element.
+ - `dataAttributes` (Record<string, string>) - (Optional) Custom data attributes for the item element. Attribute names are automatically prefixed with "data-". The "testid" key is reserved.
### action
- `href` (string) - (Optional) Defines the target URL of the menu item, turning it into a link.
- `download` (boolean | string) - (Optional) Indicates that the link should be downloaded when clicked. Only works when `href` is also provided. If set to `true`, the browser will use the filename from the URL. If set to a string, that string will be used as the suggested filename.
at src/__tests__/snapshot-tests/documenter.test.ts:15:24
|
|
|
|
|
|
Build Repository:
src/app-layout/__integ__/app-layout-focus-delegation.test.ts#L192
Unexpected 'todo' comment: 'todo - investigate why resize observer...'
|
|
Build Repository:
src/app-layout/__integ__/app-layout-drawers.test.ts#L227
Unexpected 'todo' comment: 'todo: resolve split panel positioning...'
|
|
Build Repository:
pages/utils/permutations-view.tsx#L18
Unexpected 'todo' comment: 'TODO: Pretty-print original JSX,...'
|
|
Build Repository:
pages/steps/with-updates.page.tsx#L167
JSX element uses aria-live property. Prefer using LiveRegion component instead
|
|
Build Repository:
pages/steps/with-updates.page.tsx#L155
JSX element uses aria-live property. Prefer using LiveRegion component instead
|
|
Build Repository:
pages/steps/with-updates.page.tsx#L143
JSX element uses aria-live property. Prefer using LiveRegion component instead
|
|
Build Repository:
pages/steps/with-updates.page.tsx#L127
JSX element uses aria-live property. Prefer using LiveRegion component instead
|
|
Build Repository:
pages/form-field/form-field-columns.page.tsx#L20
Unexpected 'todo' comment: 'TODO: Replace this with Select'
|
|
Build Repository:
pages/button/alignment.page.tsx#L25
Unexpected 'todo' comment: 'TODO: uncomment when we add...'
|
Loading