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

Aperta
#700 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Foxhoundn ci sta già lavorando.

Dal 6/10/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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.

Lingua principale
TypeScript
Stelle
4
Fork
0
Merge medio
16h 28m
PR unite (30g)
9

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di qoretechnologies/reqore

Tutte le issue di qoretechnologies/reqore

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.