Skip to content

Commit

Permalink
fix(modal): Prevent styles when not needed (#565)
Browse files Browse the repository at this point in the history
* fix(modal): Prevent styles when not needed

* chore: Bump package
  • Loading branch information
TSenter authored Apr 8, 2024
1 parent e78d6a5 commit e9b6fcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions addon/components/nrg-modal-container/modal-wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default class ModalWrapper extends Component {
this.args.modal?.lightbox
) {
this.modalStyles = '';
return;
}
const marginTop = target.offsetHeight / 2;
this.modalStyles = htmlSafe(`margin-top: -${marginTop}px`);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-nrg-ui",
"version": "4.7.0",
"version": "4.7.1",
"description": "Opinionated UI addon based on how KUB scaffolds web applications",
"keywords": [
"ember-addon",
Expand Down

0 comments on commit e9b6fcc

Please sign in to comment.