Hello!
In the context of XWIKI-20843, I had to think about the style of the Applications Panel drop-down toggle (see proposal for an idea of what this is).
The main idea in this PR is that we need to change its tag name from a
to button
.
This element had the behavior of a button but the presentation of an anchor.
I thought of a few possible options for style and I’d like to know which options would be more suited for this button:
-
The ‘legacy’ presentation, where the button is an anchor lookalike
For reference, this screen was made with:border: 0;color: #2f6faf;box-shadow: none; background: transparent;
. -
Using the default styles for bootstrap buttons
1.1 btn-default
1.2 btn-primary
1.X btn-success, btn-warning, btn-danger,… -
A default button with the same style as the document-menu buttons (Create, Edit, Translate, more actions)
For reference, this was made with background-color: #f8f8f8; background-image: none; border-color: #e5e5e5; box-shadow: none; color: #333333; text-shadow: none;
.
Notes:
- those screens are quickly put together prototypes, a couple things like padding might be off
- Those were made with a user that had accessibility features turned on → the anchors are always underlined. For a default user this is not the case and 0. will be even more similar to a regular link.
-1 for 0. as this makes it not so clear for the user that they are not clicking on a link and that there is hidden content in there.
+1 for 2. but it comes with some LESSCSS.
+0 for 1.1 or 1.2 would be alright options too as they are the simplest to implement and maintain and do look like a button.
What option do you think is most suited for this element?
If you have another idea of how this element could be styled, don’t hesitate to share it!