-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Editor] : Polish editor form #981
Conversation
Affected libs:
|
📷 Screenshots are here! |
7b7c232
to
28a2418
Compare
171a5b9
to
95915ae
Compare
Thank you @cmoinier and @jahow for taking the time to make the editor look better 👍 🚀 🤩 I haven't checked the code yet, but compared the local editor to the mockups and here are some differences I found: Search page
EditorStep 1
Step 2
In general:
Note:The autocomplete component needs to be checked once it is ready. Let me know if anything is not clear. |
@Angi-Kinas thank you for your thorough review!! I've addressed all the comments about the editor. @cmoinier I've added a commit to make the autocomplete input layout more stable and easier to use, now it looks sort of good both in the datahub and the editor. I tried relying on the |
a6ff599
to
8836e40
Compare
There's only gray and black variants now
Removed unused property Correctly resize layout Prevent having a too small height WYSIWYG preview is now fully sized
Instead of hardcoding some layout quirks we now allow each field to have a custom "colSpan" which lets us change its width in the form Also adjusted the form field wrapper to not show a label block if it s empty
The delete button is round and does not make the badge bigger
Now the contact card does not handle a remove event at all
The autocomplete component now relies on gn-ui-text-input (css class) and gn-ui-button (component); its layout should be stable whichever font size is given, and it should scale nicely; this means that it looks almost the same in the datahub
* spacing in attached resources * font for toggle buttons * scroll to top when switching page * url input icon alignment * made the dropdowns in the editor only 50% in width (a little bit hacky) Also added marker to not lose a translation that was done.
Hello, first of all : Whow ! The editor looks so much nicer with this polishing so congrats and thanks for that. Here are my points:
Lastly, regarding the auto complete input, I think it looks great now, but I feel like the CSS of the results shown just below when you type in seems to be different than the input. It feels odd to me (there is still a shadow but not on the main input anymore..., the corner seems to not have the same radius as the main input... ). |
I'm looking but could not find the 3 different fonts, do you mean the switch toggle? Its text was changed to "font-family-main", which is one of the two fonts we use (the other being font-family-title)
I set it to black because "our" gray-900 is lighter than in figma, and we don't have any color dark enough to match the mockup, other than black.
you're right, the autocomplete output feels off (colors, borders, font...); it's actually already the case on main. I think this should be addressed in another ticket to not make this PR bigger than it already is. Thanks for the review! |
When I filter the css in the developper tools with "font-family" I find the 3 differents font Angie reported but maybe I'm doing it wrong or maybe my browser is polluted with old cache I don't know. Let's leave it like that then.
Well, ok, let's merge it then 👍🏻 |
Description
This PR makes UI changes for the editor form.
gn-ui-button
(lg/md/sm-gray) to style the form buttons (markdown btn, comeback later btn, & url/alternate text/delete btns inimage-input
)Architectural changes
The
form-field-resource-updated
component has been renamed toform-field-date-updated
component, since it is now used for bothresourceUpdated
andrecordUpdated
fields (the component being non-specific toresourceUpdated
).Screenshots
Quality Assurance Checklist
breaking change
labelbackport <release branch>
label