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

feat(ui5-step-input): inintial implementation #2804

Merged
merged 11 commits into from
Feb 22, 2021
Merged

Conversation

NHristov-sap
Copy link
Contributor

Fixes #2640

@NHristov-sap
Copy link
Contributor Author

Old PR: #2701

Copy link
Member

@ilhan007 ilhan007 left a 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.

Copy link
Member

@ilhan007 ilhan007 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regarding the Playground sample

  1. Remove the class attr from the snippet the people are reading (you can keep them in the real source) as they make the example long, and this is not the interesting part. This applies to two sections.

Screenshot 2021-02-11 at 3 34 05 PM

  1. "When to use" should be on a new line, same as "When not to use"

Screenshot 2021-02-11 at 3 37 05 PM

}
</style>

<header>
Copy link
Member

@ilhan007 ilhan007 Feb 11, 2021

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>

Copy link
Contributor Author

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

@@ -44,6 +44,11 @@
@focusout="{{_onInputFocusOut}}"
@focusin="{{_onInputFocusIn}}"
>

{{#if valueStateMessage.length}}
<slot name="valueStateMessage" slot="valueStateMessage" style="width: 100%"></slot>
Copy link
Member

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

Copy link
Contributor Author

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: {
Copy link
Member

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) {
		}

Copy link
Contributor Author

@NHristov-sap NHristov-sap Feb 12, 2021

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: {
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Member

@ilhan007 ilhan007 left a 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.

@NHristov-sap
Copy link
Contributor Author

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

packages/main/src/StepInput.hbs Show resolved Hide resolved
packages/main/src/StepInput.hbs Show resolved Hide resolved
packages/main/src/Input.js Outdated Show resolved Hide resolved
@ilhan007 ilhan007 merged commit d80420e into master Feb 22, 2021
@ilhan007 ilhan007 deleted the bl_stepinput_final branch February 22, 2021 10:19
ilhan007 pushed a commit that referenced this pull request Feb 25, 2021
ilhan007 pushed a commit that referenced this pull request Mar 29, 2021
ilhan007 pushed a commit that referenced this pull request Jul 30, 2021
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Step Input
3 participants