Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alignment of button text in grid changes if href tag is set #6752

Open
3 tasks done
buhln opened this issue Jan 10, 2024 · 1 comment
Open
3 tasks done

Alignment of button text in grid changes if href tag is set #6752

buhln opened this issue Jan 10, 2024 · 1 comment
Labels

Comments

@buhln
Copy link

buhln commented Jan 10, 2024

Prerequisites

Describe the bug

The alignment of the text of a button in a grid depends on if the href tag is used.

Without href tag:

<Col className="p-3 d-flex justify-content-center">
  <Button variant="primary"><span className="bi-window"></span>&nbsp;Test</Button>
</Col> 

image

With href tag:

<Col className="p-3 d-flex justify-content-center">
  <Button variant="primary" href="#"><span className="bi-window"></span>&nbsp;Test</Button>
</Col> 

image

Expected behavior

Expected behavior is that in both cases the text is vertical and horizontal centered.

To Reproduce

No response

Reproducible Example

https://codesandbox.io/embed/dazzling-dream-53y7xq?fontsize=14&hidenavigation=1&theme=dark

Screenshots

No response

What operating system(s) are you seeing the problem on?

No response

What browser(s) are you seeing the problem on?

Microsoft Edge

What version of React-Bootstrap are you using?

2.8.0

What version of Bootstrap are you using?

5.3.1

Additional context

No response

@ParthSatasiya
Copy link

@buhln I added the solution to it within this MR: twbs/bootstrap#39764.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants