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

Bootstrap #4

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Bootstrap #4

wants to merge 5 commits into from

Conversation

finchi
Copy link

@finchi finchi commented Dec 8, 2023

Since I need bootstrap for my current work, I started with implementing the bootstrap flovor.

I think the HTML looks okay like this, and it only usses bootstrap classes. But the transitions are still missing. I'm not sure how to implement them with the el-transition API and only bootstrap classes.

Any idea how I could improve this?

@mpkhr
Copy link

mpkhr commented Mar 20, 2024

Would be interested in bootstrap too, also without animations. Does the PR look go to you @cmer so it can be merged?

request: nil, title: nil
request: nil,
title: nil,
bootstrap_modal_size: UltimateTurboModal.configuration.bootstrap_modal_size
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be on the base class if it's meant for the Bootstrap variant only. Should be in the Bootstrap subclass.

@@ -33,9 +36,11 @@ def initialize(
@footer_divider = footer_divider
@header = header
@header_divider = header_divider
@title_tag = title_tag
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not reuse what we already have (ie title_block)? Also, shouldn't modify the base class.

@@ -187,7 +192,7 @@ def div_title
if @title_block.present?
render @title_block
else
h3(id: "modal-title-h", class: self.class::DIV_TITLE_H_CLASSES) { @title }
send(@title_tag, id: "modal-title-h", class: self.class::DIV_TITLE_H_CLASSES) { @title }
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest we leave this as it was before. If the user wants to use a different tag, they can use title_block

@cmer
Copy link
Owner

cmer commented Apr 1, 2024

I left a few comments. If we could stay closer to the current codebase without modifying the base, that'd be ideal.

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.

3 participants