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: Hero Slider Control & Alignment fixes #27611

Merged
merged 3 commits into from
Oct 2, 2021

Conversation

shariquerik
Copy link
Member

@shariquerik shariquerik commented Sep 20, 2021

Issue:

  1. When a user tries to change an image using the slider left-right controls, it doesn't work.
  2. The Title, Subtitle, Action Button Alignment is below the Slider Controls.

Cause:
In the current hero slider HTML, the slider has an id attribute which is set as slider_name.
Now if the slider name doesn't have any space (e.g. SliderName) in it then the left-right controls work, but if the slider name has space (e.g Slider Name) it doesn't work.

Solution:
Creating a unique hash for slider and setting it as id instead of slider_name

CONTROLS
Before:
SliderBug

After:
SliderFixed

ALIGNMENT
Before:
image

After:
image

@shariquerik shariquerik changed the title fix: Controls of Hero Slider is not working fix: Hero Slider Control & Alignment fixes Sep 27, 2021
@harshit-30
Copy link
Contributor

@shariquerik @marination please review this at your earliest, we need to release this in our next release.

@shariquerik please do check, if the buttons (Primary Button) work properly after the fix.

@shariquerik
Copy link
Member Author

@shariquerik please do check, if the buttons (Primary Button) work properly after the fix.

Yes, primary button works fine after the fix, I have tested.

@marination marination merged commit 4e7ec8a into frappe:develop Oct 2, 2021
@marination
Copy link
Collaborator

@Mergifyio backport version-13-hotfix

@marination
Copy link
Collaborator

@Mergifyio backport version-13-pre-release

@mergify
Copy link
Contributor

mergify bot commented Oct 2, 2021

Command backport version-13-hotfix: success

Backports have been created

@mergify
Copy link
Contributor

mergify bot commented Oct 2, 2021

Command backport version-13-pre-release: success

Backports have been created

marination added a commit that referenced this pull request Oct 3, 2021
…-27611

fix: Hero Slider Control & Alignment fixes (backport #27611)
marination added a commit that referenced this pull request Oct 3, 2021
…se/pr-27611

fix: Hero Slider Control & Alignment fixes (backport #27611)
asoral pushed a commit to asoral/erpnext that referenced this pull request Nov 12, 2021
* fix: Creating unique hash for slider id instead of slider name

* fix: Fixed alignment of Title, Subtitle, Action Button

* chore: linter fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants