Skip to content

feat: add hover support to web#3751

Closed
RichardLindhout wants to merge 3 commits intocallstack:mainfrom
web-ridge:hover-support
Closed

feat: add hover support to web#3751
RichardLindhout wants to merge 3 commits intocallstack:mainfrom
web-ridge:hover-support

Conversation

@RichardLindhout
Copy link
Copy Markdown
Contributor

@RichardLindhout RichardLindhout commented Mar 13, 2023

Summary

Fixes #3749

Test plan

I tested the demo app!

paper-hover.mov

React.Children.only(
typeof children === 'function' ? children(state) : children
)
}
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.

Please add unit test for introduced changes in styles and rendering the children.

ViewStyle,
} from 'react-native';

import Color from 'color';
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.

Suggested change
import Color from 'color';
import color from 'color';

theme,
rippleColor,
});
const hoverColor = Color(calculatedRippleColor).fade(0.5).rgb().string();
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.

Suggested change
const hoverColor = Color(calculatedRippleColor).fade(0.5).rgb().string();
const hoverColor = color(calculatedRippleColor).fade(0.5).rgb().string();

@arjendevos
Copy link
Copy Markdown

TouchableRipple.native does still need some fixes to work properly with functions. This will be fixed soon!

@tjaniczek
Copy link
Copy Markdown
Collaborator

Moved to #3909 due to inactivity. Thank you for your contributions, we can pick it up from here!

@tjaniczek tjaniczek closed this Jul 4, 2023
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.

Add support for hover states

4 participants