olton / Metro-UI-CSS

Impressive component library for expressive web development! Build responsive projects on the web with the first front-end component library in Metro Style. And now there are even more opportunities every day!
http://metroui.org.ua/
MIT License
7.02k stars 1.97k forks source link

colspan is ignored on table cells #1878

Open ruir6o opened 2 years ago

ruir6o commented 2 years ago

Describe the bug I have created a table for listing the tracks in an album, which uses a single cell that spans all of the columns when multiple disks exist in order to separate the tracks from one disk from the other. However, when Metro transforms the table it removes the colspan attribute, meaning that the first column (with the track number) suddenly grows in width and disrupts the whole intended layout.

To Reproduce Example. If you inspect the elements that specify the CD number you'll see that the colspan attribute was removed. Adding it manually with the developer tools to both CD entries will then resize the table to the expected layout.

Expected behavior The colspan attribute should be retained in the <td> element that defines it.

Screenshots Current behaviour: Colspan being removed, disrupting the table layout Expected behaviour (manually added the colspan attribute): Colspan manually added Desktop: