Skip to content

bdrs style prop is rendered as an HTML attribute instead of applying border-radius styles #7996

@dokugo

Description

@dokugo

Dependencies check up

  • I have verified that I use latest version of all @mantine/* packages

What version of @mantine/* packages do you have in package.json?

8.1.1

What package has an issue?

@mantine/core

What framework do you use?

Vite

In which browsers you can reproduce the issue?

All

Describe the bug

I'm running into an issue with the bdrs style prop in Mantine. When I use it on a component such as Box , it's rendered as a literal HTML attribute instead of being translated into a CSS style, unlike other style props like p, m, or bd.

Example TSX:

<>
  <Box bd="1px solid gray.5" bdrs={16}>
    Hello world
  </Box>
  <Box bd="1px solid gray.5" bdrs="md">
    Hello world
  </Box>
</>

Rendered HTML output:

<div bdrs="16" ...>Hello world</div>
<div bdrs="md" ...>Hello world</div>

The bdrs HTML attribute should not be present, and instead border-radius: 16px CSS style rule should be applied.

If possible, include a link to a codesandbox with a minimal reproduction

https://stackblitz.com/edit/mantine-bdrs-style-prop-bug?file=src%2FApp.tsx

Possible fix

No response

Self-service

  • I would be willing to implement a fix for this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedCompleted issues that will be published with next patch (1.0.X)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions