Skip to content

feat: Add support for Avatar sizes and images. #216

feat: Add support for Avatar sizes and images.

feat: Add support for Avatar sizes and images. #216

Triggered via pull request January 31, 2025 21:13
Status Failure
Total duration 1m 28s
Artifacts

build-lint-test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 10 warnings
src/__tests__/documenter.test.ts > definition for avatar matches the snapshot: src/__tests__/documenter.test.ts#L15
Error: Snapshot `definition for avatar matches the snapshot > avatar 1` mismatched - Expected + Received @@ -52,10 +52,16 @@ "name": "iconUrl", "optional": true, "type": "string", }, { + "description": "Specifies the URL of a custom image. If you set both `iconUrl` and `imgUrl`, `imgUrl` will take precedence.", + "name": "imgUrl", + "optional": true, + "type": "string", + }, + { "description": "The text content shown directly in the avatar's body. Can be 1 or 2 symbols long, every subsequent symbol is ignored. Use it to define initials that uniquely identify the avatar's owner.", "name": "initials", "optional": true, @@ -72,10 +78,18 @@ When you use this property, make sure to include it in the `ariaLabel`. ", "name": "tooltipText", "optional": true, "type": "string", + }, + { + "description": "Defines the width of the avatar when using a custom image. + This value corresponds to the `width` CSS-property and will center and crop images using `object-fit: cover`. + If no width is provided the avatar will use the default width value.", + "name": "width", + "optional": true, + "type": "number", }, ], "regions": [ { "description": "Specifies the SVG of a custom icon. ❯ src/__tests__/documenter.test.ts:15:22
build / build
Process completed with exit code 1.
build / build: pages/utils/focus-visible.page.tsx#L9
Prop "id" is forbidden on Components
build / build: pages/utils/focus-visible.page.tsx#L10
Prop "id" is forbidden on Components
build / build: pages/utils/focus-visible.page.tsx#L11
Prop "id" is forbidden on Components
build / build: src/__tests__/base-props-support.test.tsx#L25
Prop "id" is forbidden on Components
build / build: src/__tests__/base-props-support.test.tsx#L30
Prop "className" is forbidden on Components
build / build: src/internal/base-component/__tests__/use-base-component.test.tsx#L30
Unexpected any. Specify a different type
build / build: src/internal/base-component/get-data-attributes.ts#L5
Unexpected any. Specify a different type
build / build: src/internal/base-component/use-base-component.ts#L19
Unexpected any. Specify a different type
build / build: src/internal/base-component/use-base-component.ts#L27
Unexpected any. Specify a different type
build / build: src/internal/events/__tests__/events.test.tsx#L81
Unexpected any. Specify a different type