-
Notifications
You must be signed in to change notification settings - Fork 12
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
base: main
Are you sure you want to change the base?
Bootstrap #4
Conversation
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 |
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 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 |
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.
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 } |
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.
I suggest we leave this as it was before. If the user wants to use a different tag, they can use title_block
I left a few comments. If we could stay closer to the current codebase without modifying the base, that'd be ideal. |
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?