-
Notifications
You must be signed in to change notification settings - Fork 6
Conversation
Very nice. I am unable to find any issues. Working well with shadow dom on Chrome. Fallback back to CE also working (Firefox). |
Added the label also on the spoken text so for ex. you will hear now: (off, featured no, switch) instead of (off, no, switch).
the disconect part was totally foobar
The switcher works fine but I suggest to discuss if we need a visible label? Now the switcher for example shows green = yes. The label says "no". Alternatives are:
|
That shouldn't be a problem as we're using properly translatable strings there
that will make a lot of people angry |
Using colour alone to signify any meaning will be an a11y fail. If you can't see colours etc then it's a problem. The golden rule is always to have at least two visual indicators |
@brianteeman in this case, the different intensity of colour could be sufficient. Because the colour has no meaning, a switcher could be blue or pink as well. The colour of the muted buttons or the label is an a11y issue, a contrast ratio of about 1.5 is too low. But this is easily changed in the css so I did not mention it. @dgrammatiko the difficulty is that longer texts ar not readable on switchers. Have a look here: https://issues.joomla.org/tracker/joomla-cms/add - to understand the "view mode" switcher you have to inspect the source code - depending on the active language. |
Reminder here, implement a solution (eg attribute inverted) for: joomla/joomla-cms#20314 |
I agree that the labels are confusing as it is. I also think colors will not be enough. Especially when it comes to parameters where "enabled" is where you actually turn something off. We have this in J3 in several places where the button colors are inverted (eg red for 1 and green for 0). The most known example being the "Site Offline" parameter. |
@Bakual green/red or other colours are an a11y issue. But your example shows very well why colours are wrong on switchers. Or View Mode: Helpmode - Switcher - Professional mode |
* Fix alert z-index * z-index reshuffle
* Amend login labels to stop jump * Font size
So after discussion in skype this is approved pending the implementation of CSS variables (and a issue in the tracker to discuss ie11 effects) |
@@ -5,6 +5,16 @@ | |||
SPACE: 32, | |||
}; | |||
|
|||
const template = document.createElement('template'); | |||
const path = document.currentScript.src; | |||
template.innerHTML = `<link href="${path.replace('/js/', '/css/').replace('.js', '.css').replace('-es5', '')}" rel="stylesheet" type="text/css"></link> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type="text/css"
<< not needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unfortunately document.currentScript
doesn't work with IE, so we have to encapsulate the css here. To ease the pain for newcomers we will also provide a PWA where someone will be able to tweak the colours or the scss and get an installable plugin that will create overrides to the current template and then self destruct. (or something like that...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Im simply referring to the type
attribute which is not required in this case when using HTML5
Pull Request for Issue # .
Summary of Changes
Switcher is now a true web component.
Why?
Testing Instructions
@ciar4n can you check that everything is ok here (eg edit an article and check that the resize is working ok now and also that save is not messed up)
Expected result
Not broken
Actual result
Broken
Documentation Changes Required
@wilsonge you'll need to merge this