-
Notifications
You must be signed in to change notification settings - Fork 292
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
Implement mobile tabbed view for Report Table and Popular Pages Widget. #9765
base: develop
Are you sure you want to change the base?
Conversation
Build files for c8b866e are ready:
|
Size Change: +1.27 kB (+0.07%) Total Size: 1.89 MB
ℹ️ View Unchanged
|
@@ -31,29 +31,17 @@ | |||
border-radius: $br-sm; | |||
|
|||
.googlesitekit-widget-audience-tiles__tabs { | |||
border-bottom: 1px solid $c-utility-divider; |
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.
The tabs in the new design use the same styling as the Audience Tiles widget's tabs, so the common style has been extracted for reuse in the googlesitekit-tab-bar--start-aligned-high-contrast
class below.
@@ -52,174 +59,221 @@ export default function ReportTable( props ) { | |||
'limit must be an integer, if provided.' | |||
); | |||
|
|||
const mobileColumns = columns.filter( ( col ) => ! col.hideOnMobile ); | |||
function isHiddenOnMobile( hideOnMobile ) { |
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.
The hideOnMobile
column flag is not relevant for the tabbed layout.
In fact, the ModulePopularPagesWidgetGA4
widget was the only widget making use of the hideOnMobile
flag so we could go one further and completely strip it out of this component.
If so, I'd suggest we do so in a followup issue rather than this one which has hit the estimate in execution.
@@ -49,6 +49,7 @@ export default function DetailsPermaLinks( { title, path, serviceURL } ) { | |||
return ( | |||
<Fragment> | |||
<Link | |||
className="googlesitekit-font-weight-medium" |
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.
I've gone ahead and set the medium font weight here so it's applied to the desktop viewport and WP dashboard "top content" widget as well, as per this Slack thread, as I think it's most likely that we'll go ahead with this approach.
If it turns out we decide not to, it will be quick to amend in a followup issue.
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.
Update: This approach has now been agreed.
export const ReportTableBasic = Template.bind( {} ); | ||
ReportTableBasic.storyName = 'Basic'; | ||
ReportTableBasic.args = createBasicArgs(); | ||
ReportTableBasic.scenario = {}; |
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.
It didn't make sense to add a VRT scenario for the ReportTableTabbedLayout
story without adding one for the basic version.
Summary
Addresses issue:
Relevant technical choices
PR Author Checklist
Do not alter or remove anything below. The following sections will be managed by moderators only.
Code Reviewer Checklist
Merge Reviewer Checklist