-
Notifications
You must be signed in to change notification settings - Fork 6
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(select): ghost select #1133
Merged
Merged
Changes from 3 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
324ec29
viv-773-select #comment ghost select - no border option
rachelbt 9acf99a
viv-773-select #comment ui test png
rachelbt 6158974
Merge branch 'master' into VIV-773-select
rachelbt 44edeb4
viv-773-select #comment add test
rachelbt d05d9ca
Merge branch 'master' into VIV-773-select
rachelbt 400be0e
Merge branch 'master' into VIV-773-select
rachelbt 6b01e50
add ui test for dense with no padding
rachelbt 35443ca
Merge branch 'master' into VIV-773-select
rachelbt b0f41df
Merge branch 'master' into VIV-773-select
YonatanKra File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
import '@vonage/vwc-select'; | ||
import '@vonage/vwc-list/vwc-list-item.js'; | ||
|
||
|
||
export async function createElementVariations(wrapper) { | ||
const textElementWrapper = document.createElement('div'); | ||
textElementWrapper.innerHTML = ` | ||
<vwc-select label="VWC Select with long text" helper="Helper Text" > | ||
<vwc-list-item | ||
mwc-list-item="" | ||
tabindex="0" | ||
aria-disabled="false" | ||
role="option" | ||
aria-selected="true" | ||
selected="" | ||
activated="" | ||
></vwc-list-item> | ||
<vwc-list-item | ||
value="0" | ||
mwc-list-item="" | ||
tabindex="-1" | ||
aria-disabled="false" | ||
role="option" | ||
> | ||
Item 0 | ||
</vwc-list-item> | ||
<vwc-list-item | ||
value="1" | ||
mwc-list-item="" | ||
tabindex="-1" | ||
aria-disabled="false" | ||
role="option" | ||
> | ||
Item 1 | ||
</vwc-list-item> | ||
<vwc-list-item | ||
value="2" | ||
mwc-list-item="" | ||
tabindex="-1" | ||
aria-disabled="false" | ||
role="option" | ||
> | ||
Item 2 | ||
</vwc-list-item> | ||
<vwc-list-item | ||
value="3" | ||
mwc-list-item="" | ||
tabindex="-1" | ||
aria-disabled="false" | ||
role="option" | ||
> | ||
Item 3 | ||
</vwc-list-item> | ||
</vwc-select> | ||
<hr> | ||
<vwc-select label="VWC Select" helper="Helper Text" dense> | ||
<vwc-list-item | ||
mwc-list-item="" | ||
tabindex="0" | ||
aria-disabled="false" | ||
role="option" | ||
aria-selected="true" | ||
selected="" | ||
activated="" | ||
></vwc-list-item> | ||
<vwc-list-item | ||
value="0" | ||
mwc-list-item="" | ||
tabindex="-1" | ||
aria-disabled="false" | ||
role="option" | ||
> | ||
Item 0 | ||
</vwc-list-item> | ||
<vwc-list-item | ||
value="1" | ||
mwc-list-item="" | ||
tabindex="-1" | ||
aria-disabled="false" | ||
role="option" | ||
> | ||
Item 1 | ||
</vwc-list-item> | ||
<vwc-list-item | ||
value="2" | ||
mwc-list-item="" | ||
tabindex="-1" | ||
aria-disabled="false" | ||
role="option" | ||
> | ||
Item 2 | ||
</vwc-list-item> | ||
<vwc-list-item | ||
value="3" | ||
mwc-list-item="" | ||
tabindex="-1" | ||
aria-disabled="false" | ||
role="option" | ||
> | ||
Item 3 | ||
</vwc-list-item> | ||
</vwc-select de> | ||
<hr> | ||
<vwc-select label="VWC Select" helper="Helper Text" ghost dense> | ||
<vwc-list-item | ||
mwc-list-item="" | ||
tabindex="0" | ||
aria-disabled="false" | ||
role="option" | ||
aria-selected="true" | ||
selected="" | ||
activated="" | ||
>none</vwc-list-item> | ||
<vwc-list-item | ||
value="0" | ||
mwc-list-item="" | ||
tabindex="-1" | ||
aria-disabled="false" | ||
role="option" | ||
> | ||
Item 0 | ||
</vwc-list-item> | ||
<vwc-list-item | ||
value="1" | ||
mwc-list-item="" | ||
tabindex="-1" | ||
aria-disabled="false" | ||
role="option" | ||
> | ||
Item 1 | ||
</vwc-list-item> | ||
<vwc-list-item | ||
value="2" | ||
mwc-list-item="" | ||
tabindex="-1" | ||
aria-disabled="false" | ||
role="option" | ||
> | ||
Item 2 | ||
</vwc-list-item> | ||
<vwc-list-item | ||
value="3" | ||
mwc-list-item="" | ||
tabindex="-1" | ||
aria-disabled="false" | ||
role="option" | ||
> | ||
Item 3 is long | ||
</vwc-list-item> | ||
</vwc-select> | ||
`; | ||
wrapper.appendChild(textElementWrapper); | ||
} | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This needs to be tested.
Also, need to test the logic that's bound to it:
If ghost is true, dense must be true (at least that's what I see in the code).
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 we enforce programmatically? it's that mutating user's definition discussion again...
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.
We need because of the design. As I wrote in the summery of this PR its a quick & dirty fix. This component is different from our conventions in a lot of ways...