-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
dev/user-interface#49 - SearchKit: improve tabbed interface #28688
Conversation
🤖 Thank you for contributing to CiviCRM! ❤️ We will need to test and review this PR. 👷 Introduction for new contributors...
Quick links for reviewers...
|
That looks a big improvement. Is it possible to make the tabs accessible? Civi's JQuery tabs on the contact dashboard are accessible (ie keyboard controllable, tab to select, arrow to move between) tho I don't think the Bootstrap 3 tabs (e.g. API4 explorer) are. It doesn't look like there's unique ID's for each tab/panel - which is what ARIA wants (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/tab_role). I couldn't see from Angular's a11y docs if they simplify the process of this. But at a least making each tab a |
I like it. Design isn't my thing so I'll leave it open for now for others to weigh in but it seems simple and straightforward. One slight downside of this layout is that you can't see all the parts of the query on the screen at the same time, so eg screenshots on SE may need multiple screenshots in place of the current one. But that's not sufficient reason to hold back this change. I wonder whether a few lines of boxing around tab headers and the content panel would make the tabbed structure more obvious. |
This PR takes a step in that direction by wrapping the tab |
I agree. But I'm not sure where my role as developer ends and the role of a themer begins. I tried to do everything with vanilla BS3. But if it makes sense we could add more styling? |
@colemanw NB - I see from the link that BS3 is the source of |
@vingle I've committed your suggestions, and with a touch more css was able to achieve a flowy look between the tabs and the panel (see updated screenshot in desc). |
8105b04
to
1c0d868
Compare
@colemanw Looks much improved. |
1c0d868
to
83bef79
Compare
Thanks @vingle, I just pushed a few more tweaks (namely shifting the tabs down a few pixels so the rounded corner of the tab pane stays round) & updated the description. |
@colemanw I'm still getting the line overlap on the merge demo (It's probably different with different themes)… ![]() |
83bef79
to
a65f726
Compare
@vingle ok I just pushed an update. I can't say I understand where that misalignment is coming from in your testing, but what I just pushed should be more forgiving. |
@colemanw (edit) I think this is specific to Drupal Gardland in the generated demo. All the other ![]() With latest commit (NB - this is around 1400px width viewport): ![]() With ![]() |
a65f726
to
8e597f9
Compare
Ok @vingle and I resolved this over chat & seems to be good now. |
I like those updates. A good step forward for the UI! |
Overview
This implements a bunch of the suggestions in https://lab.civicrm.org/dev/user-interface/-/issues/49 to reorganize the SK tabs.
Before
After