ec-europa / europa-component-library

ECL - Europa Component Library
https://ec.europa.eu/component-library
European Union Public License 1.1
128 stars 35 forks source link

Different alignment EC/EU for modal dialog header #3658

Closed wiibaa closed 1 month ago

wiibaa commented 1 month ago

Expected behavior

I would expect that both EC/EU dialogs have the same alignment in header

Actual behavior

EC (from https://ec.europa.eu/component-library/playground/ec/?path=/story/components-modal--default&globals=viewport:responsive) image

EU (from https://ec.europa.eu/component-library/playground/eu/?path=/story/components-modal--default&globals=viewport:responsive) image

Steps to reproduce the issue

Immediate, visible in playground

emeryro commented 1 month ago

Hello, indeed, the spacing are not the same between EC and EU, and so the content is not placed exactly at the same position. But this is the expected design. In both cases, the buttons is not supposed to be aligned with the (optional) title, it is placed absolutely from the top right corner (even in on EU it is closer to be aligned)

wiibaa commented 1 month ago

Thanks for confirmation. It helps!