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

Card layout updates #1005

Merged
merged 11 commits into from
Nov 15, 2021
Merged

Card layout updates #1005

merged 11 commits into from
Nov 15, 2021

Conversation

cea2aj
Copy link
Member

@cea2aj cea2aj commented Nov 15, 2021

Update the layout of the card feedback buttons so that they are located in their own row underneath the CTAs and the card content

This change was in response to feedback from Product/UX. This PR moves the feedback buttons out from the HitchhikerCard-actions div into the card body. We also remove the HichhikerCard-actions div since that was only there so that the buttons could be next to the CTAs. This allows the card content to be full width when CTAs are not present. It adds some extra height to most cards since there's an entire row dedicated to the feedback buttons, however UX was happy with this decision. As part of this change, I removed some styling which is no longer relevant.

This PR also ensures that the feedback buttons are in the bottom right on grid layout. (Previously the buttons could appear just below the card content in grid layout just below the CTAs)

Also set a fixed feedbackContent height so that the cards don't shift when the buttons are pressed.

J=SLAP-1702
TEST=manual

Visual inspect all cards with feedback buttons enabled and also check mobile layouts. Test the product cards on the grid layout and confirm the feedback buttons are in the bottom right. Test clicking the feedback buttons and observing that the cards do not shift

@coveralls
Copy link

coveralls commented Nov 15, 2021

Coverage Status

Coverage remained the same at 9.19% when pulling 5699b76 on dev/card-feedback-updates into dd3db33 on release/v1.26.

@cea2aj cea2aj requested review from nmanu1 and oshi97 November 15, 2021 20:29
@cea2aj cea2aj requested review from nmanu1 and oshi97 November 15, 2021 21:39
@cea2aj cea2aj merged commit d4a56a7 into release/v1.26 Nov 15, 2021
@cea2aj cea2aj deleted the dev/card-feedback-updates branch November 15, 2021 22:11
@nmanu1 nmanu1 mentioned this pull request Nov 16, 2021
nmanu1 added a commit that referenced this pull request Nov 16, 2021
## Version 1.26.0
### Features
- Add support for the auth token, with a new global_config `token` field  (#976)
- Add support for the visitor, which can be set or changed at runtime (#970)
- Add support for generic thumbs up/down feedback buttons to all cards (#973, #1005)
- Handle page and template names with spaces (#988)

### Changes
- Update styling of navigation ‘More’ menu (#989)
- Update hover color of search bar buttons (#1000)
- Internal repo changes (automate WCAG testing (#987))

### Bugfixes
- Fix console error which would appear on google maps (#955)
- Fix extra query when loading in iframe integrations (#986)
- Fix bug that displayed links that didn’t exist (#990)
- Allow microphone access for voice search in iframe (#991)
- Fix issue with custom search icon size (#992)
- Fix bug with new prop comments not being added (#1004)
- Fix distance alignment on location cards (#1006)
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.

None yet

5 participants