Skip to content

Connect: Do not hide any filters if the search term limits the list of clusters to just one cluster#24447

Merged
gzdunek merged 3 commits intomasterfrom
gzdunek/fix-cluster-filter-when-there-is-one-cluster
Apr 14, 2023
Merged

Connect: Do not hide any filters if the search term limits the list of clusters to just one cluster#24447
gzdunek merged 3 commits intomasterfrom
gzdunek/fix-cluster-filter-when-there-is-one-cluster

Conversation

@gzdunek
Copy link
Copy Markdown
Contributor

@gzdunek gzdunek commented Apr 12, 2023

This PR fixes the issues that were found in #24190

ref={isActive ? activeItemRef : null}
role="menuitem"
$active={isActive}
active={isActive}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

What's the convention behind adding a dollar sign to props?

https://styled-components.com/docs/api#transient-props

(it does not have any effect here, so I removed it)

@gzdunek gzdunek requested a review from ravicious April 12, 2023 15:23
Base automatically changed from gzdunek/limit-results-after-sorting to master April 12, 2023 16:37
@gzdunek gzdunek force-pushed the gzdunek/fix-cluster-filter-when-there-is-one-cluster branch from 6cac006 to 9539b00 Compare April 13, 2023 14:42
${props => {
if (props.active) {
return css`
background: ${props => props.theme.colors.levels.elevated};
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is the CSS that ends up being generated. It shouldn't cause problems here but I'd be wary of using this approach in general.

generated CSS

@gzdunek gzdunek marked this pull request as ready for review April 14, 2023 10:47
@github-actions github-actions Bot requested review from kimlisa and ryanclark April 14, 2023 10:48
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from kimlisa April 14, 2023 11:02
@gzdunek gzdunek added this pull request to the merge queue Apr 14, 2023
Merged via the queue into master with commit e2bb8b7 Apr 14, 2023
@gzdunek gzdunek deleted the gzdunek/fix-cluster-filter-when-there-is-one-cluster branch April 14, 2023 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants