fremtind / jokul

Jøkul er et designsystem utviklet av Fremtind.
https://jokul.fremtind.no
MIT License
62 stars 34 forks source link

fix: handle Files with path set better #3895

Closed ivarni closed 1 month ago

ivarni commented 1 month ago

First make sure that the layout remains correct when a File has the path prop set. Secondly, change the DOM structure so that the close icon that is present when onRemove prop is set can be interacted with. This means that now only the filename itself becomes a click target when the file has a path to avoid having nested interactive elements.

ISSUES CLOSED: #3891

🎯 Sjekkliste

fremtind-bot commented 1 month ago

Forhåndsvisning: https://jokul.fremtind.no/preview/3891-File-with-path/ Commit: 0ab6ca1d9ab44ac83814352932bcb91ebab3db6f

Forhåndsvisningen blir tilgjengelig innen et par minutter. Den fjernes automatisk når pull requesten lukkes.