Skip to content
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

Added Block setting and Shortcode attribute to display Student Account Dashboard as stacked or columns #2651

Merged
merged 10 commits into from
May 15, 2024

Conversation

kimcoleman
Copy link
Member

Description

Now allowing people to define a shortcode attribute 'layout' for our Student Dashboard / My Account page shortcode OR for the My Account block.

The attribute accepts 'columns' or 'stacked'. Stacked will maintain the current appearance of the My Account page where the navigation is above the content of the tab.

Columns will display the layout with the navigation in the left column. We can provide people with CSS recipes to have the columns swapped so the nav is on the right side. I feel this is better than supporting more options for the layout attribute, but I am open to it. It isn't a lot of effort to change this to "Navigation Location: Top | Left | Right".

This update also includes adding proper core LifterLMS forms CSS selectors to the "Redeem a Voucher" tab of the My Account page so that the form field and buttons are in line with other forms throughout the frontend.

How has this been tested?

Locally

Note: We should test a bit more with Kadence and Astra - right now they are looking fine when the default attribute is set to stacked. Kadence will not look good with the attribute "columns" since our CSS is getting mixed up with the styling in their customizations
.
Sky Pilot will also need an update. I am going to do that PR and make it dependent on this update being released.

Screenshots

Screenshot 2024-05-08 at 7 26 30 AM
Screenshot 2024-05-08 at 7 34 47 AM

Types of changes

New feature (non-breaking change which adds functionality)

Checklist:

  • This PR requires and contains at least one changelog file.
  • My code has been tested.
  • My code passes all existing automated tests.
  • My code follows the LifterLMS Coding & Documentation Standards.

@kimcoleman kimcoleman requested a review from ideadude as a code owner May 8, 2024 12:14
@kimcoleman
Copy link
Member Author

Sky Pilot related PR that will need merge and release when this goes out (this will break Sky Pilot sites): https://github.com/gocodebox/sky-pilot/pull/115

@brianhogg brianhogg changed the base branch from dev to v7.7 May 15, 2024 14:41
@brianhogg brianhogg merged commit b19b1db into gocodebox:v7.7 May 15, 2024
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants