User tests: Successful: Unsuccessful:
Addresses issue #40011.
The guided tours are accessible throughout the administration.
However, on small devices, the tours cannot always run properly because some of the content is hidden from view and from the tours (targets are not found so the steps end up in the upper left corner of the window).
I am not sure this is the best approach, so please comment.
Add CSS to hide the tour dropdown on small viewports.
Make sure you see the 'Take a tour' button on the top toolbar of the administrator console.
Resize the window down. Around 576px, the dropdown should disappear.
You can take a tour on any screen size.
'Take a tour' is not visible if the viewport is small or you are on a mobile device (tablets should be fine, but usually not smartphones).
This does not prevent the user to start a tour, resize the window down and continue the tour with possible 'failure' (no error or anything, just unexpected behavior in case an element is not 'visible').
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
Category | ⇒ | Repository NPM Change |
Status | New | ⇒ | Pending |
Labels |
Added:
NPM Resource Changed
PR-4.3-dev
|
(Factory::getApplication()->client->mobile == true)
That approach should never be used anymore as the UA string is deprecated from all the browsers as they start to roll out client hints
What would be a more solid solution is to have JS sniff the ACTUAL device (eg is it touch? has a small screen? etc) and then activate the dropdown button which by default should be disabled. Should be less than 5 lines of code and it works based on the actual data of the client not some sniffed dodgy data that could fail due to proxies, deprecated strings, etc
my 2c
This one here is CSS only
I have tested this item
does what it says
I have tested this item
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
?
|
Would adding d-none d-sm-block
be an option?
<div class="header-item-content dropdown header-tours">
Yes a different solution without the additional css.
Yes a different solution without the additional css.
It is actually much cleaner, I did not think about it.
Labels |
Removed:
?
|
Category | Repository NPM Change | ⇒ | Modules Administration |
Labels |
Added:
?
|
I have tested this item
I have tested this item
Labels |
Removed:
NPM Resource Changed
|
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-03-09 23:01:00 |
Closed_By | ⇒ | obuisard |
I don't know either, but maybe you can do something with the following approach in case of mobile devices. These are often small. You don't need ccs.
Code in plugin, something like this:
See for the devices:
joomla-cms/libraries/src/Environment/Browser.php
Lines 545 to 555 in 1c0eda3
[EDIT Sorry, my proposal doesn't work. Plugin does not behave what I expected.]