Skip to content

[@docs] add Scroller styles API data#8818

Merged
rtivital merged 1 commit into
mantinedev:masterfrom
semimikoh:fix/scroller-styles-api-data
Apr 7, 2026
Merged

[@docs] add Scroller styles API data#8818
rtivital merged 1 commit into
mantinedev:masterfrom
semimikoh:fix/scroller-styles-api-data

Conversation

@semimikoh

Copy link
Copy Markdown
Contributor

Closes #8817

Problem

The Scroller component page (/core/scroller?t=styles-api) was
not loading the Styles API tab. The component is declared as having
a Styles API in the docs metadata, but @docs/styles-api had no
ScrollerStylesApi entry.

Fix

Add packages/@docs/styles-api/src/data/Scroller.styles-api.ts and
export it from packages/@docs/styles-api/src/index.ts.

Verification

All entries match the actual Scroller component implementation:

Selectors match ScrollerStylesNames type:

```ts
export type ScrollerStylesNames =
'root' | 'container' | 'content' | 'control' | 'chevron';
```

CSS variables match ScrollerCssVariables and varsResolver:

```ts
export type ScrollerCssVariables = {
root: '--scroller-control-size' | '--scroller-background-color';
};
```

Modifiers match the actual data attributes in Scroller.tsx:

  • data-draggable={draggable || undefined} on the container
  • data-position="start" | "end" on the control buttons
  • data-hidden={!show... || undefined} on the control buttons

Testing

  • oxfmt --check passes for both modified files
  • ⚠️ Could not run full workspace typecheck or docs app build
    locally due to internal package setup issues unrelated to this
    change (@mantinex/* packages and other @docs/* workspaces
    fail to resolve in my local environment). Will rely on CI for
    full type/build verification, since the change is scoped to
    adding a single docs data file and one re-export.

The Scroller component is declared as having a Styles API tab in the
docs metadata, but @docs/styles-api had no ScrollerStylesApi entry,
so /core/scroller?t=styles-api was not loading.

Add the data file with selectors, CSS variables, and modifiers that
match the actual Scroller implementation, and export it from the
package index.

Selectors, vars, and modifiers were verified against:
- ScrollerStylesNames type in Scroller.tsx
- ScrollerCssVariables type and varsResolver in Scroller.tsx
- data-draggable on the container, data-position and data-hidden on
  the control buttons in Scroller.tsx

Closes mantinedev#8817
@rtivital rtivital merged commit d6459f0 into mantinedev:master Apr 7, 2026
1 check passed
@rtivital

rtivital commented Apr 7, 2026

Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scroller Styles API Documentation Not Loading

2 participants