Skip to content

Radio button#121

Open
dagfrode wants to merge 7 commits into
mainfrom
radio-button
Open

Radio button#121
dagfrode wants to merge 7 commits into
mainfrom
radio-button

Conversation

@dagfrode

@dagfrode dagfrode commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Hva er endret?

Legger til ny radio button component

@dagfrode dagfrode requested a review from a team as a code owner June 1, 2026 09:01
@github-actions

github-actions Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Azure Static Web Apps: Your stage site is ready! Visit it here: https://lively-water-0d2fd1f03-121.westeurope.3.azurestaticapps.net

@github-actions

github-actions Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Azure Static Web Apps: Your stage site is ready! Visit it here: https://lively-water-0d2fd1f03-121.westeurope.3.azurestaticapps.net

Comment thread indeks-css/css/components/form/radio-group.css Outdated
@antidecaf

Copy link
Copy Markdown
Contributor

Har lagt inn noen endringer for å oppdatere størrelse og få eksemplene i docs til å funke:

CSS:

  • Størrelsen på radiobutton er nå 24px, jmf oppdaterte skisser
  • Mindre luft mellom radiobutton og label-tekst

Web component:

  • Leser nå name fra host-elementet og propagerer til alle inputs
  • Observerer name-attributt via observedAttributes for å fange opp endringer fra React
  • MutationObserver lytter på attributtendringer på inputs slik at name resettes hvis React fjerner det (dette var et problem i docusaurus)

React:

  • Sender name-prop til
  • Ny defaultValue-prop for ukontrollert modus med intern state

Docs:

  • Alle live-eksempler bruker defaultValue i stedet for value
  • Props-tabellen dokumenterer defaultValue

@github-actions

Copy link
Copy Markdown
Contributor

Azure Static Web Apps: Your stage site is ready! Visit it here: https://lively-water-0d2fd1f03-121.westeurope.3.azurestaticapps.net

1 similar comment
@github-actions

Copy link
Copy Markdown
Contributor

Azure Static Web Apps: Your stage site is ready! Visit it here: https://lively-water-0d2fd1f03-121.westeurope.3.azurestaticapps.net

@github-actions

Copy link
Copy Markdown
Contributor

Azure Static Web Apps: Your stage site is ready! Visit it here: https://lively-water-0d2fd1f03-121.westeurope.3.azurestaticapps.net

@github-actions

Copy link
Copy Markdown
Contributor

Azure Static Web Apps: Your stage site is ready! Visit it here: https://lively-water-0d2fd1f03-121.westeurope.3.azurestaticapps.net

@github-actions

Copy link
Copy Markdown
Contributor

Azure Static Web Apps: Your stage site is ready! Visit it here: https://lively-water-0d2fd1f03-121.westeurope.3.azurestaticapps.net

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.

2 participants