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

DSP-615 Date Value Component Polish #184

Merged
merged 14 commits into from
Sep 28, 2020
Merged

Conversation

mdelez
Copy link
Contributor

@mdelez mdelez commented Sep 21, 2020

closes https://dasch.myjetbrains.com/youtrack/issue/DSP-615

uses js-lib rc.11 and dsp-api rc.15

…div and give the error message the custom-error-message class name
@mdelez mdelez changed the title Date Value Component Polsi Date Value Component Polish Sep 21, 2020
@mdelez mdelez self-assigned this Sep 21, 2020
@mdelez mdelez added the styling label Sep 21, 2020
@mdelez
Copy link
Contributor Author

mdelez commented Sep 25, 2020

The problem stems from the DOM elements not generating inside the correct divs for the default Material Design css to take effect.

Here is what it should look like, using the default mat-datepicker in the template and the MatNativeDateModule in the AppModule. Notice that the mat-datepicker-toggle is placed inside the div mat-form-field-suffix.
Screen Shot 2020-09-21 at 15 54 08

And here is what is generated with the JDNCalendar directive. The mat-datepicker-toggle is placed inside the div mat-form-field-infix
Screen Shot 2020-09-25 at 09 42 05

@kilchenmann
Copy link
Contributor

uses js-lib rc.11 and dsp-api rc.15

Is this information relevant in this PR? It's not up to date anymore 😉

@mdelez
Copy link
Contributor Author

mdelez commented Sep 25, 2020

Update: It seems to be an issue with the jdndatepicker directive. If I use a mat-datepicker in the template without the directive and provide the Active Calendar token directly inside the date-input component, it works.
Screen Shot 2020-09-25 at 10 23 30

@mdelez
Copy link
Contributor Author

mdelez commented Sep 25, 2020

uses js-lib rc.11 and dsp-api rc.15

Is this information relevant in this PR? It's not up to date anymore 😉

Yeah it's outdated now. Flavie likes to have this info for reviews. Maybe I can add this info at the end, since PR's that are open for a long time will likely use different versions by the end.

@kilchenmann
Copy link
Contributor

It seems to be an issue with the jdndatepicker directive. If I use a mat-datepicker in the template without the directive and provide the Active Calendar token directly inside the date-input component, it works.

Yes, I can imagine why. The jdndatepicker directive needs additional space and we did not define it in the root css. But I'm not sure and will check this

@kilchenmann
Copy link
Contributor

kilchenmann commented Sep 25, 2020

Yeah it's outdated now. Flavie likes to have this info for reviews. Maybe I can add this info at the end, since PR's that are open for a long time will likely use different versions by the end.

Agree. But as soon we update a branch from master it could change. Especially js-lib version is defined in package.json. When I switch branches I run always npm install to get the correct version for this branch. But yes, I agree with the api version. I hope we will solve this dependency mess soon. 🙈

@mdelez
Copy link
Contributor Author

mdelez commented Sep 25, 2020

It seems to be an issue with the jdndatepicker directive. If I use a mat-datepicker in the template without the directive and provide the Active Calendar token directly inside the date-input component, it works.

Yes, I can imagine why. The jdndatepicker directive needs additional space and we did not define it in the root css. But I'm not sure and will check this

What's not clear to me is why using this directive makes the html generate incorrectly. The mat-datepicker-toggle should always be in the suffix div.

@kilchenmann
Copy link
Contributor

What's not clear to me is why using this directive makes the html generate incorrectly. The mat-datepicker-toggle should always be in the suffix div.

I see. So, the little calendar icon to open the calendar is a suffix? Good to know. At the moment it's at the beginning; I thought it's a prefix. But good. I try to style it 😵 It's tricky 🤪

@mdelez
Copy link
Contributor Author

mdelez commented Sep 25, 2020

What's not clear to me is why using this directive makes the html generate incorrectly. The mat-datepicker-toggle should always be in the suffix div.

I see. So, the little calendar icon to open the calendar is a suffix? Good to know. At the moment it's at the beginning; I thought it's a prefix. But good. I try to style it 😵 It's tricky 🤪

if we can find a way to make the directive generate the calendar icon in the suffix, then the default material design css should do all the styling for us.

@mdelez mdelez merged commit e287816 into master Sep 28, 2020
@mdelez mdelez deleted the wip/dsp-615-date-value-comp-polish branch September 28, 2020 08:00
@kilchenmann kilchenmann changed the title Date Value Component Polish DSP-615 Date Value Component Polish Oct 12, 2020
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.

None yet

3 participants