-
Notifications
You must be signed in to change notification settings - Fork 62
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
Customization (DT) Beta - Font Icon Picker #2078
Customization (DT) Beta - Font Icon Picker #2078
Conversation
kodinkat
commented
May 23, 2023
…ield icon rendering logic to better support font icon displaying
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.
@kodinkat Thanks so much for coding this! I'm testing it as we speak.
In order to keep the UI consistent, could you...?
- Make the edit field settings modal card flip and make the icon selector modal unflip
- Add the
dt-admin-modal-overlay
class when opening the icons modal
Thanks again!
@prykon That's now in for you... Updating font icon picker dialog to adopt flip animation turned out to be slightly fiddlier then anticipated; so let me know if anything... |
…ols-theme into customize-dt-beta-font-icon-picker
@kodinkat I would add a |
I think we're good to merge, @corsacca |
@kodinkat |
@kodinkat Icon updates properly on the admin page and dt frontend but not if it's inside a multi select... |
@prykon try it now and let me know.. :) |
@kodinkat It works now! Found one more bug, though... |
@prykon, That looks like an issue with the Church Health and not with the implementation of the font icon picker. Maybe a separate issue? |
dt-core/global-functions.php
Outdated
|
||
<?php | ||
// Determine icon html element shape to be adopted. |
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.
@kodinkat, font icons need to use the font-icon
field, not the icon
field, then the code at line 340 works
…health logic to support displaying of font icons
@kodinkat Looks good now! |
dt-core/admin/js/dt-options.js
Outdated
@@ -91,7 +239,9 @@ jQuery(document).ready(function ($) { | |||
* Icon selector modal dialog | |||
*/ | |||
|
|||
function display_icon_selector_dialog(parent_form, icon_input) { | |||
function display_icon_selector_dialog(parent_form, icon_input, callback = function (source) { | |||
console.log(source); |
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.
is this debug or needed?
dt-core/admin/js/dt-options.js
Outdated
@@ -313,7 +469,9 @@ jQuery(document).ready(function ($) { | |||
* Icon selector modal dialog - Handle Icon Save | |||
*/ | |||
|
|||
function handle_icon_save(dialog, parent_form, icon_input) { | |||
function handle_icon_save(dialog, parent_form, icon_input, callback = function (source) { | |||
console.log(source); |
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.
@kodinkat is this debug or needed?
@kodinkat Thanks for hanging in there for this one; so many ins and outs! Steps to reproduce:
Apparently, it's saving the icon value to undefined and that also breaks the frontend... |
@prykon thanks for this and for the steps; which helped me to reproduce! A fix has now been pushed, so feel free to have a play and let me know if there are still any remaining hidden bugs..... :) |
Looking good, @kodinkat! Screen.Recording.2023-06-09.at.09.17.31.mov |
@prykon thanks for this... However, issue not showing up on my end for Anyway, just to be on the safe-side, I've added |
@kodinkat It's working now! Also, no other bugs found. @corsacca are we good to push? |