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

fix(herobody): solves empty highlight deafult issue #1489

Merged
merged 3 commits into from
Sep 13, 2023

Conversation

seaerchin
Copy link
Contributor

Problem

Previously we default to highlights - however, a bug existed where if you had empty highlights, adding the highlight options would not work on preview (because our preview checks using the !hero.dropdown property

Solution

update HeroBody component so that we take an initialSectionType so it fits with how preview does the dropdown/highlight

Tests

  • go to a site
  • delete all highlights and make highlight the selected option
  • click save
  • reload the page
  • click add highlight option
  • a highlight should show on previwe

@seaerchin seaerchin temporarily deployed to staging September 13, 2023 06:25 — with GitHub Actions Inactive
@seaerchin seaerchin temporarily deployed to staging September 13, 2023 06:29 — with GitHub Actions Inactive
@alexanderleegs alexanderleegs merged commit 140afeb into develop Sep 13, 2023
3 checks passed
@mergify mergify bot deleted the fix/empty-highlights branch September 13, 2023 09:49
@alexanderleegs alexanderleegs temporarily deployed to staging September 13, 2023 09:59 — with GitHub Actions Inactive
This was referenced Sep 13, 2023
kishore03109 pushed a commit that referenced this pull request Sep 20, 2023
* fix(herobody): solves empty highlight deafult issue

* fix: add default for hero dropdown

* chore: swap intialSectionType selector to follow conditional

---------

Co-authored-by: seaerchin <[email protected]>
Co-authored-by: Alexander Lee <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants