-
Notifications
You must be signed in to change notification settings - Fork 273
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(ui5-step-input): inintial implementation #2804
Conversation
Old PR: #2701 |
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 valueStateMessage slot does not work, you can see how the DatePicker forwards it to the internal Input.
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.
} | ||
</style> | ||
|
||
<header> |
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.
You need this "Since marker" so the version is displayed in the API ref next to the StepInput title, just replace your current header with the one below:
<header class="component-heading">
<h2 class="control-header">StepInput</h2>
<div class="component-heading-since">
<span><!--since_tag_marker--></span>
</div>
</header>
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.
Done!
- Playground sample fixed.
- valueStateMessage fixed
packages/main/src/StepInput.hbs
Outdated
@@ -44,6 +44,11 @@ | |||
@focusout="{{_onInputFocusOut}}" | |||
@focusin="{{_onInputFocusIn}}" | |||
> | |||
|
|||
{{#if valueStateMessage.length}} | |||
<slot name="valueStateMessage" slot="valueStateMessage" style="width: 100%"></slot> |
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.
style="width: 100%"
Is this have any effect on the slot element
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.
err, no... just tried something... will remove it now!
* @defaultvalue "" | ||
* @public | ||
*/ | ||
name: { |
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.
Providing the name
API is not enough to have Form Support. You can test the FormSupport in the FormSupport.html by adding a StepInput with name and value. Currently, nothing is being submitted from the StepInput.
Look at the Input's onBeforeRendering method to see how the FormSupport is implemented:
const FormSupport = getFeature("FormSupport");
if (FormSupport) {
FormSupport.syncNativeHiddenInput(this);
} else if (this.name) {
}
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.
Done. Also did some "design" to FormSupport.html :)
* @private | ||
* @defaultvalue "" | ||
*/ | ||
ariaLabel: { |
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.
Both ariaLabel and ariaLabelledby doesn't make anything, you have to forward them to the internal Input component, use the DatePicker as reference particularly the method
get accInfo() {
Otherwise nothing would be read.
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.
Done
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.
Now that you changed the FormatSupport.html, the FormSupport.spec.js is failing and you have to update the test -particularly the expected submitted value.
Done |
Part of #3107 BREAKING CHANGE: The support for ```aria-labelledby``` have been deprecated in favour of new attribute ```accessible-name-ref``` for the following components: - ComboBox (Requested by SF #1916) - DatePicker (Requested by SF #2107) - Input (Requested #1866) - List (Requested by SF #1886) - Rating Indicator - Select (Requested by SF #2107) - StepInput (Implemented as part of the initial implementation #2804) - TextArea (Requested by SF #2107) - WizardStep (Implemented as part of the initial implementation #2400) The ```aria-labelledby``` has been deprecated for the following component: - Button (Requested by SF #1425) The ```accessible-name``` has been deprecated for the following components: - Link (Requested by SF #2356) Both ```aria-labelledby``` and ```accessible-name``` have been deprecated for the following components: - Card (Requested by CBC #2127) - CheckBox (Requested by SF #2265)
Fixes #2640