Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@sfc-gh-tteixeira
Copy link
Contributor

@sfc-gh-tteixeira sfc-gh-tteixeira commented Dec 27, 2024

Describe your changes

Today, when you hover over any part of a selected item in an st.multiselect you get a "πŸ‘†" cursor. This is confusing because the only part of a selected item that's actually interactive is the "Γ—" icon.

With this PR, only the "Γ—" icon of an st.multiselect will show a "πŸ‘†" cursor on hover.

Before

old.mov

After

new.mov

GitHub Issue Link (if applicable)

None

Testing Plan

  • Explanation of why no additional tests are needed: not sure if there's a good way to test this. Also: is it even worth tests? Not sure we should be testing every cursor behavior in Streamlit...
  • Unit Tests (JS and/or Python): No
  • E2E Tests: No
  • Any manual testing needed? I'm not sure... Might be good to make sure this works as intended in all browsers and OSes. But I'm not doing anything crazy here, so not really required.

Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

@sfc-gh-bnisco sfc-gh-bnisco added security-assessment-completed Security assessment has been completed for PR change:bugfix PR contains bug fix implementation impact:users PR changes affect end users labels Jan 6, 2025
@sfc-gh-tteixeira sfc-gh-tteixeira merged commit d40f1fd into develop Jan 6, 2025
42 of 45 checks passed
@sfc-gh-tteixeira sfc-gh-tteixeira deleted the multiselect-x branch January 6, 2025 18:33
edegp pushed a commit to edegp/streamlit that referenced this pull request Jan 19, 2025
…the X (streamlit#10087)

## Describe your changes

Today, when you hover over any part of a selected item in an
`st.multiselect` you get a "πŸ‘†" cursor. This is confusing because the
only part of a selected item that's actually interactive is the "Γ—"
icon.

With this PR, only the "Γ—" icon of an `st.multiselect` will show a "πŸ‘†"
cursor on hover.

### Before


https://github.com/user-attachments/assets/65f5dec1-484a-468c-929e-3b519d78d7ae


### After


https://github.com/user-attachments/assets/f54cd611-3e12-43cb-83ae-a6bf5daa6ccb


## GitHub Issue Link (if applicable)

None

## Testing Plan

- Explanation of why no additional tests are needed: not sure if there's
a good way to test this. Also: is it even worth tests? Not sure we
should be testing _every_ cursor behavior in Streamlit...
- Unit Tests (JS and/or Python): No
- E2E Tests: No
- Any manual testing needed? **I'm not sure...** Might be good to make
sure this works as intended in all browsers and OSes. But I'm not doing
anything crazy here, so not really required.

---

**Contribution License Agreement**

By submitting this pull request you agree that all contributions to this
project are made under the Apache 2.0 license.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:bugfix PR contains bug fix implementation impact:users PR changes affect end users security-assessment-completed Security assessment has been completed for PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants