Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
a64ecd8
Release script: Update react-native-editor version to 1.81.0
derekblank Aug 4, 2022
29d06a6
Release script: Update with changes from 'npm run core preios'
derekblank Aug 4, 2022
4d1ca7e
Release script: Update react-native-editor version to 1.81.1
dcalhoun Aug 24, 2022
78fc8f4
Release script: Update with changes from 'npm run core preios'
dcalhoun Aug 24, 2022
9edbebe
[Mobile] - Add BlockListCompact (#43431)
Aug 25, 2022
201e83a
[RNMobile] List block v2: Fix text color inconsistencies with list it…
derekblank Aug 19, 2022
f41577e
Mobile - Disable FastImage on Android (#43322)
Aug 18, 2022
a439a53
[Mobile] - Fix dynamic React Native version (#43058)
Aug 8, 2022
94b8447
[RNMobile] Use default placeholder text color for native List Item (#…
derekblank Aug 25, 2022
8599e8c
Mobile - Update CHANGELOG
Aug 25, 2022
10fef38
Release script: Update react-native-editor version to 1.82.0
SiobhyB Sep 1, 2022
4e2512c
Release script: Update with changes from 'npm run core preios'
SiobhyB Sep 1, 2022
60199dc
[RNMobile] Set tintColor for ActionSheetIOS (#42996)
SiobhyB Aug 8, 2022
7fe980b
Update picker's .scss to follow BEM convention (#43036)
SiobhyB Aug 22, 2022
5157b3d
Update CHANGELOG with 1.82.0 changes
SiobhyB Sep 1, 2022
570fd2d
Release script: Update react-native-editor version to 1.82.1
SiobhyB Sep 6, 2022
059e5c1
Release script: Update with changes from 'npm run core preios'
SiobhyB Sep 6, 2022
59dd5de
Mobile - List V2 - Prevent error when list is empty (#43861)
Sep 5, 2022
f761037
[Mobile] List V2 - Fixes split issues (#43949)
Sep 7, 2022
0ef2c30
Update CHANGELOG to include 1.82.1 changes
SiobhyB Sep 8, 2022
b32d772
Merge branch into trunk
SiobhyB Sep 8, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update picker's .scss to follow BEM convention (#43036)
  • Loading branch information
SiobhyB committed Sep 1, 2022
commit 7fe980b07cb2dbb81ce87800f099277dc551c9af
14 changes: 10 additions & 4 deletions packages/components/src/mobile/picker/index.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import styles from './styles.scss';

function Separator() {
const separatorStyle = usePreferredColorSchemeStyle(
styles.separator,
styles.separatorDark
styles[ 'components-picker__separator' ],
styles[ 'components-picker__separator--dark' ]
);

return <View style={ separatorStyle } />;
Expand Down Expand Up @@ -64,7 +64,10 @@ export default class Picker extends Component {
separatorType={ 'none' }
onPress={ () => this.onCellPress( option.value ) }
disabled={ option.disabled }
style={ option.disabled && styles.disabled }
style={
option.disabled &&
styles[ 'components-picker__button--disabled' ]
}
/>
</Fragment>
) );
Expand All @@ -81,7 +84,10 @@ export default class Picker extends Component {
hideHeader
testID={ testID }
>
<PanelBody title={ title } style={ styles.panelBody }>
<PanelBody
title={ title }
style={ styles[ 'components-picker__panel' ] }
>
{ this.getOptions() }
{ ! hideCancelButton && (
<TextControl
Expand Down
8 changes: 4 additions & 4 deletions packages/components/src/mobile/picker/styles.native.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.separator {
.components-picker__separator {
margin-top: $grid-unit-20 * 0.5;
margin-bottom: $grid-unit-20 * 0.5;
margin-left: -$grid-unit-20;
Expand All @@ -7,15 +7,15 @@
background-color: $light-gray-400;
}

.separatorDark {
.components-picker__separator--dark {
background-color: $gray-70;
}

.disabled {
.components-picker__button--disabled {
opacity: 0.3;
}

.panelBody {
.components-picker__panel {
padding-left: 0;
padding-right: 0;
}
Expand Down