UI tweaks in Elements
Follow up to https://github.com/stoplightio/elements/pull/1332#issuecomment-856672828 - most of it needs to be fixed outside of Elements, this issue is just for keeping everything in one place
✅ ~~Font size differ between sections. As much as it looks good for the article, it is a bit odd for me in the
Securitypanel~~ UPDATE: this is already fixed
✅ ~~Same thing in stacked layout - can we make it more consistent?~~ UPDATE: this is already fixed
⚠️ We are duplicating the header content in the description
⚠️ Dark mode in stacked layout is not working properly:
⚠️ Error screens in dark mode are a bit hard to see
❓ I don't know if this related to MarkdownViewer or styling in Elements, but the table width is different
We are now using the full width of the section instead of minimal space required for the content. @noor-ahmad - what are your thoughts on that?
UPDATE: we can keep the full width of the page, but need to align the contents of the columns to the left
Now:
Before:
⚠️ Link for that logo is outdated - not needed for this PR, but worth knowing
⚠️ Bullet points with links look like plain text, don't have the links styling
⚠️ Padding for schemas embedded in articles doesn't look good (the
requiredtext)
Summary after the call with @noor-ahmad
Re: tables
- Let's align the contents of a column to the left, as before
- Let's bring back the table title
- Table can take the full width of the page
Re: font sizes
- Let's unify the font size in Request Samples, Model Examples etc. to 12 px (the right column components)
Regarding fonts we can simply do that, but tables reside entirely in new markdown-viewer and were made to fill full width on purpose so if that's something that needs a change I guess it should be addressed there.
tables reside entirely in new markdown-viewer and were made to fill full width on purpose so if that's something that needs a change I guess it should be addressed there.
Actually the full width can stay, the text alignment needs to change. I'll update the description









