Altinn / altinn-studio

Next generation open source Altinn platform and applications.
https://docs.altinn.studio
BSD 3-Clause "New" or "Revised" License
111 stars 70 forks source link

Inconsistent sizes / styles #13226

Open mlqn opened 2 months ago

mlqn commented 2 months ago

Description

Here is a non-exhaustive list of style inconsistencies

A solution could be to to set the default size of our Studio components (StudioTextField, StudioTextarea, etc.) to small, as we did for buttons.

Form editor Data model editor
![sizes](https://github.com/user-attachments/assets/bb15021b-0885-4085-a252-ec131155cccf) ![datamodel-field-sizes](https://github.com/user-attachments/assets/df747ffc-d304-41f8-a842-00b0b9b5a06e)

A solution here could be to set the font-size of the icons of the buttons to a larger size (e.g. font-size: 1.3em), as they do in designsystemet. We should also probably create a StudioIcon component and set the size to small.

Form editor Settings
![icon-sizes](https://github.com/user-attachments/assets/dffba92a-1f7e-418d-ac8e-86298a01f901) ![settings-icon-sizes (1)](https://github.com/user-attachments/assets/3c062f57-0845-4c8a-b0b4-7a66439c401a)

This should be fixed by the solution suggested for the field sizes

Settings
settings2 settings1
Form editor Data model editor Process editor
![form-alert-margins (1)](https://github.com/user-attachments/assets/828f5ade-5fef-47e5-a91e-e419873fa0e5) ![datamodel-alert-margins (1)](https://github.com/user-attachments/assets/5caa5cc0-65ca-4438-bab8-1a02be22cb33) ![process-alert-margins (1)](https://github.com/user-attachments/assets/964b3fa1-d5e6-43b0-934b-52d3b6671690)

Additional Information

No response

Tasks

No response

Acceptance Criterias

No response

### Tasks
- [ ] Replace DesignSystem components with Studio components (e.g `<StudioTextField />` instead of `<TextField />`)
- [ ] Set the size of all Studio components to small
- [ ] https://github.com/Altinn/altinn-studio/issues/12034
wrt95 commented 3 weeks ago

Investigate all areas this is relevant for, and create separate issues for the different cases. We should create studio-components where needed. Designsystemet is using medium as default size, but we use small - This should be set in the studio-component.