ReqoreButton with href (an <a>) stretches to its container's width in block layout; the <button> does not

Open
#700 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@Foxhoundn is already working on this.

Since Oct 6, 2026.

Assessment

This issue has not been assessed yet.

Description

What the landing page needs

ReqoreButton with href renders a real <a> (good: middle-click, "open in a new tab" and link semantics work). Laid out on its own in block layout, though, it does not size like the same button without href: StyledButton is display: flex, which makes an <a> a block-level flex container that fills the line, while a <button> keeps its intrinsic width whatever its display. The marketing site's "Get a demo" can be either (a button that opens a dialog, or a link to a booking page, a CMS switch); in link mode the pill stretched across its 1,200 px column. fixed does not help outside a flex container (it only sets flex: 0 0 auto).

What would fix it

A link-mode button sizes like the button: display: inline-flex for both elements, or width: fit-content unless fluid. A story with the two side by side in a plain block container.

Meanwhile

The site puts its DemoButton in its own ReqoreControlGroup (src/components/demo/Demo.tsx, marked TODO(reqore)), where fixed applies.

Dominant language
TypeScript
Stars
4
Forks
0
Avg merge
16h 28m
Merged PRs (30d)
9

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from qoretechnologies/reqore

All issues in qoretechnologies/reqore

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.