Skip to content

Commit

Permalink
[Web] Stop using className, fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
brunolemos committed Jun 6, 2019
1 parent e2b6114 commit 8a244de
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/components/src/components/columns/Columns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ export const Columns = React.memo((props: ColumnsProps) => {
<FlatList
ref={flatListRef}
key="columns-flat-list"
className="pagingEnabledFix"
bounces={!swipeable}
data={columnIds}
data-paging-enabled-fix
disableVirtualization={Platform.OS === 'web'}
getItemLayout={getItemLayout}
horizontal
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/common/Touchable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ export const Touchable = React.forwardRef(
return (
<TouchableComponent
{...props}
className="touchable"
ref={touchableRef}
data-touchable
onLongPress={onLongPress}
onPress={onPress}
style={[
Expand Down
4 changes: 2 additions & 2 deletions packages/web/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ input:focus {
outline: none !important;
}

.touchable:not(a) {
[data-touchable]:not(a) {
cursor: inherit;
}

/* https://github.com/necolas/react-native-web/issues/1299 */
.pagingEnabledFix > div > div > div {
[data-paging-enabled-fix] > div > div > div {
height: 100%;
}

0 comments on commit 8a244de

Please sign in to comment.