-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[4.3][Guided Tours] Hide 'Take a tour' on small devices #40045
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
Conversation
Added Bootstrap mixins import
Missing variable
Added functions
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.] |
|
Related #40046 |
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 ✅ successfully on 7a8946c This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40045. |
|
I have tested this item ✅ successfully on 7a8946c This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40045. |
1 similar comment
|
I have tested this item ✅ successfully on 7a8946c This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40045. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40045. |
|
Would adding
|
|
@Quy isn't that the functionaly the same as the code here? |
|
Yes a different solution without the additional css. |
It is actually much cleaner, I did not think about it. |
|
I have tested this item ✅ successfully on c4124df This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40045. |
1 similar comment
|
I have tested this item ✅ successfully on c4124df This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40045. |
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.
Summary of Changes
Add CSS to hide the tour dropdown on small viewports.
Testing Instructions
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.
Actual result BEFORE applying this Pull Request
You can take a tour on any screen size.
Expected result AFTER applying this Pull Request
'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').
Link to documentations
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