-
Notifications
You must be signed in to change notification settings - Fork 125
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
feat: (core) Add [state] to all input-group related components. Adapt forms #1613
Conversation
Deploy preview for fundamental-ngx ready! Built with commit 0aa77b6 |
08cf699
to
91ed595
Compare
<br/> | ||
|
||
<div fd-form-item> | ||
<label fd-form-label>Disabled Date Picker</label> |
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.
The disabled date picker still gets the hand on hover
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.
Also add :(core)
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.
There is added pointer-events: none
no disabled popovers.
<br/><br/> | ||
<div fd-form-item> | ||
<label fd-form-label>Disabled Date Picker</label> | ||
<fd-datetime-picker [state]="'information'" formControlName="disabledDate"></fd-datetime-picker> |
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.
cursor still has hand on hover
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.
There is added pointer-events: none
no disabled popovers.
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.
932799d
to
8841e7d
Compare
Hi @InnaAtanasova, did you check the preview checkbox? On my side it looks like that: |
It's radio buttons, not checkboxes that are broken |
1b80678
to
b191d19
Compare
b191d19
to
d364fec
Compare
@InnaAtanasova |
@JKMarkowski @InnaAtanasova @stefanoScalzo are we waiting for anything more in this PR? |
Hi @droshev, We are waiting for SAP/fundamental-styles#442 I think. |
0964bf3
to
05a5356
Compare
Newest 0.4.0-rc.21 is adapted on this PR. |
18b35b1
to
8b1a3df
Compare
<span class="fd-toggle" | ||
[ngClass]=" | ||
(size ? ('fd-toggle--' + size) : '') + | ||
(semantic ? ' fd-toggle--semantic' : ' ') + |
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 think there should not be a space in between the quotes
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.
There should be quotes, because it's treaten as a string, without empty string it will be
fd-toggle--sizefd-toggle--semantic
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.
quotes yes but there is a space on line 5 in the single quotes
@@ -1,7 +1,10 @@ | |||
<fd-input-group [compact]="compact" | |||
[state]="state" |
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 is there a state on the input group and the addon?
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.
Otherwise it's not applied to inputs.
max-height: 100%; | ||
|
||
.fd-input-group__addon--button .fd-input-group__button { | ||
&:hover { |
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.
Should this be in styles?
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.
It is on styles, but on NGX we have some issues with classes hierarchy, so it's mandatory to add it there aswell.
'fd-input-group--compact' : compact}"> | ||
[ngClass]="(inline ? 'fd-input-group--inline ' : ' ') + | ||
(disabled ? 'is-disabled ' : ' ') + | ||
(state ? 'is-' + state : ' ')"> |
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.
could also be written like this
[ngClass]="
{
'fd-input-group--inline': inline,
'is-disabled ' : disabled,
is-' + state: state
}
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.
It throws error, there is no way to add dynamically class as key
in ngClass
object
@@ -4,3 +4,5 @@ | |||
@import "~fundamental-styles/dist/radio"; | |||
@import "~fundamental-styles/dist/textarea"; | |||
@import "~fundamental-styles/dist/form-select"; | |||
@import "~fundamental-styles/dist/fieldset"; | |||
|
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.
@InnaAtanasova Not sure if this should be importing all of these styles?
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 removed unused.
Solve conflicts, Change FormState type file Add new forms styling Add input group examples Add datepicker form example Add multiple addons on input group Adapt new forms from styles, add form usage example in input-group components Change input group multiple addons
…component, remove brs
0f624cf
to
25252be
Compare
@stefanoScalzo All your comments has been resolved, stackblitz is working. Please take a look again, so we can merge it. |
61d1c7f
to
d71b98e
Compare
d71b98e
to
0aa77b6
Compare
Please provide a link to the associated issue.
fixes: #1085
fixes: #1217
fixes: #1216
fixes: #1721
fixes: #1715
It is WIP PR, just to summarize all the things done and start to make docs in breaking changes
Please provide a brief summary of this pull request.
There is new
[state]
@input on all of the input-group related component:After some change on
fundamental-style
,Select
component will be added to this list as well.There is new documentation and usage of these component within Form, with
fd-form-message
component.There is also new forms adaptation, which included change of
FormMessage
component, the types to'success' | 'error' | 'warning' | 'information'
FormControl
component, now it supports thecompact
mode and has other types:'valid' | 'invalid' | 'warning' | 'information'
FormLabel
got new[checkbox]
,[radio]
and[toggle]
options, to define if it's used along with these input elementsInputGroup will have changed styling (no impact on NGX), but it will allow to use more than 1 addon one side.
Toggle now have
semantic
andcompact
modes.Changed
fd-form-set
tofd-fieldset
Removed
fd-input-group-search
Please check whether the PR fulfills the following requirements
https://github.com/SAP/fundamental-ngx/blob/master/CONTRIBUTING.md
Documentation checklist:
README.md