-
Notifications
You must be signed in to change notification settings - Fork 6
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
Hide podcast app launchers on desktop #414
base: main
Are you sure you want to change the base?
Conversation
We have had customer feedback that these buttons don't do anything on desktop and it is a concern that we are losing out on opportunities for engagement by showing people broken buttons. This commit: - Uses a media query to hide the app launcher buttons on desktop as they don't work - Introduces an oGrid dependency to get the standard breakpoint for desktop
LGTM @alicebartlett |
@robsquires good tip Rob - I'll check that |
OK - I've checked this on next-article and it looks good. @robsquires is gonna check on the app so I don't have to get all that set up, and then I think we're good! |
@alicebartlett we've lost the buttons on a landscape ipad 😢 |
As part of a bug raised via editorial, we need to hide the podcast app links on desktop because they don't do anything. To do this I have used a combination of @media query to show at narrow screens (ie when the website is viewed on a mobile) and an isApp prop to always show it if you're viewing in the app wrapper.
@@ -48,39 +48,38 @@ class PodcastLaunchers extends Component { | |||
|
|||
render() { | |||
const { rssUrl } = this.state; | |||
const { conceptId, conceptName, csrfToken, isFollowed, renderFollowButton } = this.props | |||
const { conceptId, conceptName, csrfToken, isFollowed, renderFollowButton, showLinksOnAllBreakpoints } = this.props |
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.
As per IRL chat, default showLinksOnAllBreakpoints
to true
🚢👈 |
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.
sorry this PR got forgotten about! it looks good now 🙂 @robsquires, since Alice is away would you mind shepherding this through to release (if it's still needed)?
Hello, this is my first foray into x-dash, so it's very possible I've done something obvious incorrectly. Please be vigilant when reviewing this PR!
We have had customer feedback that these buttons don't do anything on
desktop and it is a concern that we are losing out on opportunities
for engagement by showing people broken buttons.
This commit:
they don't work
desktop
If this is your first
x-dash
pull request please familiarise yourself with the contribution guide before submitting.I don't know how x-dash manages Origami dependencies. This is either a patch release because it is a very small change that won't break anything, or it is major because I have introduced a new Origami dependency which could break a dependency tree somewhere. Can anyone advise on this?
✅ Discuss features first (chatted with @robsquires)
✅ Update the documentation
✅ No hacks, experiments or temporary workarounds
? Decide on a version (major, minor, or patch)