-
Notifications
You must be signed in to change notification settings - Fork 5
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
Search box is not aligned to the index nav width on the release notes page #2085
Search box is not aligned to the index nav width on the release notes page #2085
Conversation
🦋 Changeset detectedLatest commit: 8be6e25 The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Preview URLs:
|
* | ||
* Note: Release notes page has a different varient on column two's width to account for search filters | ||
*/ | ||
export const contentLayoutConfig = { |
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.
Extracted a single source of truth for layout config mapping.
We have 2 layouts here "default" & "releaseNotes"
}; | ||
|
||
// Namespace declarations for all app layout grid ids | ||
export const GRID_ID_ROW_ONE = { |
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.
Extracting shared vars for global grid layout ids
* @param allowWideContentLayout boolean to determine if the page should allow wide content layout | ||
* @returns | ||
*/ | ||
export const getPageLayoutGridStyles = ({ |
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.
This is the single entry point for layout components to get their grid styling from. We can avoid layout drift by reducing the duplicated code
gridRows, | ||
isReleaseNotesPage: props.isReleaseNotesPage, | ||
allowWideContentLayout: props.allowWideContentLayout, | ||
isHeader: 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.
Header flag configures fixed width or not
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 refactor seems ok, I'm relying mostly on VRT to ensure possible side effects.
One important thing @ColinRosati make sure to link the correct issue to the PR, as far as I can see the one linked is not related with the task
Thanks updated the link. I was relying on VRT as well. I manually tested few different layouts |
…-width-on-the-release-notes-page
Hey @zbalek can you help check that this fixes the layout issue for release notes? |
Hi @ColinRosati can you please share a preview link? |
@zbalek Theres a few different layouts here: For the release notes search box I can only test that locally unfornately and will have to wait till we merge and test the changes in docs release |
@ColinRosati Okay, in that case I only took a look at the layouts in the links you've shared. The second one actually misses a search box completely (?🤔) |
@zbalek from what I see if we compare against main on that one route the search box is not present. Comparing Maybe Im missing something though? |
As fare as I can see, the ticket seems to refer to the release notes page which exists only on the docs repo and uses a custom layout see |
Thats right, the docs release-notes page as well as our other pages use the layout components within docs-kit. Ive tested the changes locally for release notes page, but unfortunately wont be able to get a preview deploy of the docs repo. I would propose we move forward with the PR and do the feature QA in docs release |
In this case I would proceed as follow:
Ensure that the issue remains open as this PR it's not going to fix it directly. @FFawzy do you agree? |
… page (#2085) Description of changes Align layout header and layout page content for release notes util for shared layout for header and page content refactor grid layouts Shared const IDs in layout components extracted config and logic Link to original ticket closes #2068 * feat: Shared Page Content layout util * chore: use global grid ids in layouts * chore: add changeset * fix: xl column2 bug * chore: code improvements * fix: header row height * fix: column2 tablet * chore: update comment * fix: column2 fixed body
* feat: add feedback feature to self-learning pages * chore: added type definitions for png * chore: fix padding and add script loading delay * chore: refactor to use same thumbs component in ai assistant * chore: changeset * chore: hide feedback buttons on mobile * chore: add google analytics call * chore: address PR comments * Search box is not aligned to the index nav width on the release notes page (#2085) Description of changes Align layout header and layout page content for release notes util for shared layout for header and page content refactor grid layouts Shared const IDs in layout components extracted config and logic Link to original ticket closes #2068 * feat: Shared Page Content layout util * chore: use global grid ids in layouts * chore: add changeset * fix: xl column2 bug * chore: code improvements * fix: header row height * fix: column2 tablet * chore: update comment * fix: column2 fixed body --------- Co-authored-by: Colin Rosati <[email protected]>
Description of changes
Link to original ticket
closes #2068
Link to change (deep-link for reviewing the change)
Screenshot of changes (if applicable)
DoD guidelines