Skip to content

Conversation

@itssharmasandeep
Copy link
Contributor

@itssharmasandeep itssharmasandeep commented Mar 31, 2021

Description

This PR adds hover and pressed behaviour on select, multi-select and menu-dropdown buttons

Testing

Tested locally

Screenshot for multi-select pressed
Screenshot 2021-03-31 at 3 44 04 PM

Checklist:

  • My changes generate no new warnings

@itssharmasandeep itssharmasandeep requested a review from a team as a code owner March 31, 2021 09:30
@codecov
Copy link

codecov bot commented Mar 31, 2021

Codecov Report

Merging #732 (9d77269) into main (2f3f763) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #732   +/-   ##
=======================================
  Coverage   85.20%   85.20%           
=======================================
  Files         786      786           
  Lines       16096    16097    +1     
  Branches     2003     2003           
=======================================
+ Hits        13714    13715    +1     
  Misses       2349     2349           
  Partials       33       33           
Impacted Files Coverage Δ
...nents/src/menu-dropdown/menu-dropdown.component.ts 100.00% <ø> (ø)
...ponents/src/multi-select/multi-select.component.ts 98.43% <ø> (ø)
projects/components/src/select/select.component.ts 94.64% <100.00%> (+0.09%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2f3f763...9d77269. Read the comment docs.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@arjunlalb
Copy link
Contributor

@itssharmasandeep Could you also add screenshots/screen recording of the behaviour?

*ngSwitchCase="'${SelectTriggerDisplayMode.Icon}'"
class="trigger-content icon-only"
[ngClass]="this.selected !== undefined ? 'selected' : ''"
[ngClass]="[this.selected !== undefined ? 'selected' : '', this.popoverOpen ? 'open' : '']"
Copy link
Contributor

Choose a reason for hiding this comment

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

may be we should make this an object for better readability

"{ selected: this.selected !== undefined, open: this.popoverOpen}"

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

arjunlalb
arjunlalb previously approved these changes Mar 31, 2021
align-items: center;

&.open {
background-color: transparent;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this doing anything or is it overridden by line 124 (indentation may be throwing me off here)

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

@github-actions

This comment has been minimized.

@itssharmasandeep itssharmasandeep merged commit 118269a into main Mar 31, 2021
@itssharmasandeep itssharmasandeep deleted the select-hover branch March 31, 2021 13:50
@github-actions
Copy link

Unit Test Results

    4 files  ±0  246 suites  ±0   15m 18s ⏱️ -36s
883 tests ±0  883 ✔️ ±0  0 💤 ±0  0 ❌ ±0 
887 runs  ±0  887 ✔️ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 118269a. ± Comparison against base commit 2f3f763.

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.

4 participants