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

Modal in 2.0.0-beta.9 no longer adds page class name to ion-page element #7000

Closed
jasonwaters opened this issue Jun 21, 2016 · 7 comments
Closed
Assignees
Milestone

Comments

@jasonwaters
Copy link

The element has a class attribute with a generated classname like "user-login" if the page class is named "UserLogin". This is no longer the case for modals.

see #6606

@jgw96
Copy link
Contributor

jgw96 commented Jun 21, 2016

Hello, thanks for opening an issue with us! Would you be able to provide a plunker that demonstrates this issue? Thanks for using Ionic!

@jasonwaters
Copy link
Author

Hi @jgw96, I took a closer look and here's what I found:

In [email protected], there is an ion-page element with the corresponding css classname of the javascript component. I use this to add custom styles like so:

screen_shot_2016-06-21_at_1_12_17_pm

But in beta.9, the ion-page has been replaced with ion-modal-inner. That's fine, but can we add the css classname for the javascript element to that element? That will prevent my styles from breaking all over the place.

screen_shot_2016-06-21_at_1_14_51_pm

@jgw96 jgw96 added the v2 label Jun 21, 2016
@jgw96
Copy link
Contributor

jgw96 commented Jun 21, 2016

Thanks for the info! If im not thinking wrong this was part of the change when we added inset modals on bigger screens. I will discuss this with my teammates and see what they think.

@brandyscarney brandyscarney added this to the 2.0.0-beta.10 milestone Jun 21, 2016
@brandyscarney brandyscarney self-assigned this Jun 21, 2016
brandyscarney added a commit that referenced this issue Jun 21, 2016
@brandyscarney
Copy link
Member

Thanks for the issue! This was actually changed recently to use ion-page again, but it was adding the class as PascalCase. I've fixed it for the beta 10 release and created a nightly if you'd like to test it out:

npm install --save  [email protected]

Thanks again! 😄

@jasonwaters
Copy link
Author

Thanks @brandyscarney! I tried out the nightly but it looks like there's a problem with ion-navbar not showing up now. I'm going to stick with beta.8 until 10 comes out. 😀

@brandyscarney
Copy link
Member

@jasonwaters Oh yes we've changed a bit of the structure. We'll have some steps to upgrade to beta 10 in the changelog! 😊

@michael-brade
Copy link

@brandyscarney Heh, the code didn't take long to disappear again I guess. On Jun 28, this commit 215c6d8#diff-7b81c66d6f3e9c4b82c40ee5ecd30e50
deleted your fix (in fact, the whole loadComponent function), and now with Ionic 2 RC0 we are back to no class name in a modal. Would you mind adding it again? 😊

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants