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

Apply bootstrap theme to searchKit dashlets #19577

Merged
merged 1 commit into from
Feb 11, 2021

Conversation

colemanw
Copy link
Member

Overview

This conditionally loads Bootstrap3 onto the Civi home dashboard if a Search display is embedded in a dashlet, and wraps that dashlet with a bootstrap-theme tag.

Before

image

After

image

Technical Details

Technically, this produces invalid markup because more than one dashlet could contain <div id='bootstrap-theme'>. Oh well, I couldn't think of a better solution that was reasonably expedient, and browsers don't seem to care.

@civibot
Copy link

civibot bot commented Feb 10, 2021

(Standard links)

@civibot civibot bot added the master label Feb 10, 2021
@seamuslee001 seamuslee001 self-assigned this Feb 10, 2021
@seamuslee001
Copy link
Contributor

I tested this and confirmed it works, merging

@seamuslee001 seamuslee001 merged commit e0d7c06 into civicrm:master Feb 11, 2021
@seamuslee001 seamuslee001 deleted the bootstrapDashlets branch February 11, 2021 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants