-
-
Notifications
You must be signed in to change notification settings - Fork 276
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
Use SwitchToggle to enable/disable comment preview #5416
base: develop
Are you sure you want to change the base?
Use SwitchToggle to enable/disable comment preview #5416
Conversation
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@emi420 what you propose is a very good idea! |
I like how @emi420 has moved the user image out from the markdown editor box. But regarding the placement of the preview button, I feel the current markdown we have i.e. in the screenshot below is okay. Now, the write and preview buttons are together which is also similar to the GitHub markdown editor, and keeping them together is more appropriate in terms of accessibility too |
I adored how @willemarcel swapped out the tabs for a switch, maintaining usefulness while saving so much room. I appreciate the attention to detail and desire to align the design system within the Tasking Manager. With the switch on the bottom of the markdown editor, the switch will move with the preview content if a user has a lengthy markdown text, which could make it challenging for the user to switch between the Write and Preview modes. This is one concern I have with putting the switch toggle at the bottom of the text field. As a user, I'd like it if the switch remained in the same location on the screen as my comment grew. We would stop any visual changes as the user types if we placed the tabs option at the top of the container. Additionally, because the text is lengthy in the preview mode, having the tabs at the top makes it simple for users to transition between the modes without having to scroll all the way to the bottom of the container. Users tend to rely on tabs to navigate between different sections or modes in an application. The use of switch toggles, on the other hand, is commonly associated with binary on/off decisions, and they may not be as quickly recognizable as tabs. I believe that using switch toggles would add a cognitive load that tabs can avoid, making tabs a more expressive choice. With switch toggles, we are limited to a single label and may not be able to provide users with as much context or information as we can with tabs. |
Good analysis @HelNershingThapa ! I didn't realized that switching between write and preview also changes the position of the bottom section, that's definitely something that breaks usability. I agree with @willemarcel that tabs design must be improved, because it doesn't look good right now. For making good design changes we must take into account the whole comment box and its context, as all UI elements are related, maybe we should create an issue for "comment box redesign" , what do you think? CC @ramyaragupathy |
sounds good @emi420 - @royallsilwallz, medium priority, definitely on our to do list |
I believe that style fits better with the app design system.