-
Notifications
You must be signed in to change notification settings - Fork 4
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
YALB-1428: Bug: Action Banner Field Labels #402
YALB-1428: Bug: Action Banner Field Labels #402
Conversation
Again, created this with don't merge until the node access fix can be pulled in. |
Created multidev environment pr-402 for yalesites-platform. |
cff3c8a
to
e182752
Compare
Created multidev environment pr-402 for yalesites-platform. |
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.
This works as described. However, I wanted to point out that this is also changing the "link text" to "Call-to-action text" on other components too - Grand Hero and Content Spotlight were the ones I checked. If this is cool, then that's fine. But, if not, we may want to get more specific (if we can?) to target just the Action Banner.
Boo! I checked some that had links and they didn’t change but it did seem odd that it didn’t given my code. Thanks for checking. I’ll see what I can do to distinguish. |
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.
this looks great! 👍
oh i just saw the note on distinguishing, if its going to be a lot of custom code to do so, I would say keeping the "call to action" link label but reverting the changes to the specific link text as "call to action text" since its effecting other components |
@miketullo95 Ah ok. Well, let me bring it up in stand up today to see if there's something I'm missing, but if no one knows, maybe that can be a ticket for later? I am able to use a hook to get the block type, and I am able to use a hook to get the label, but I'm having trouble being able to retrieve both in order to ONLY change the action banner version. :( |
@codechefmarc @miketullo95 I think I was able to finally target it with |
e39ad8b
to
b6bcfbb
Compare
Well, when it's done building that is. :D |
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.
it works! amazing job
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.
Yup, also tested on other components and site settings, etc, and it only shows on the action banner. Nice hook find - I wasn't aware of that one. Approved!
web/profiles/custom/yalesites_profile/modules/custom/ys_core/ys_core.module
Outdated
Show resolved
Hide resolved
Rename CTA Banner heading and content to Action Banner for consistency.
ec7e588
to
b1d7c5b
Compare
YALB-1428: Bug: Action Banner Field Labels
Description of work
CTA Banner Heading
label toAction Banner Heading
CTA Banner Content
label toAction Banner Content
Link
heading for the link widget toCall-to-action
Functional testing steps:
Call-to-action