Skip to content

Commit db5d853

Browse files
committed
✨ add console-opening button on bottom bar
1 parent 4ac8fa0 commit db5d853

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

client/common/icons.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import Exit from '../images/exit.svg';
1212
import DropdownArrow from '../images/down-filled-triangle.svg';
1313
import Preferences from '../images/preferences.svg';
1414
import Play from '../images/triangle-arrow-right.svg';
15+
import Code from '../images/code.svg';
16+
1517

1618
// HOC that adds the right web accessibility props
1719
// https://www.scottohara.me/blog/2019/05/22/contextual-images-svgs-and-a11y.html
@@ -74,3 +76,4 @@ export const ExitIcon = withLabel(Exit);
7476
export const DropdownArrowIcon = withLabel(DropdownArrow);
7577
export const PreferencesIcon = withLabel(Preferences);
7678
export const PlayIcon = withLabel(Play);
79+
export const CodeIcon = withLabel(Code);

client/components/mobile/ActionStrip.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,25 @@ import { bindActionCreators } from 'redux';
44
import { useDispatch } from 'react-redux';
55
import { prop, remSize } from '../../theme';
66
import IconButton from './IconButton';
7-
import { ExitIcon } from '../../common/icons';
7+
import { CodeIcon } from '../../common/icons';
88
import * as IDEActions from '../../modules/IDE/actions/ide';
99

1010
const background = prop('MobilePanel.default.background');
1111
const textColor = prop('primaryTextColor');
1212

1313
const BottomBarContent = styled.h2`
14-
padding: ${remSize(12)};
14+
padding: ${remSize(8)};
1515
1616
svg {
1717
max-height: ${remSize(32)};
18-
padding: ${remSize(4)}
18+
/* padding: ${remSize(4)} */
1919
}
2020
`;
2121

2222
export default () => {
2323
const { expandConsole } = bindActionCreators(IDEActions, useDispatch());
2424

25-
const actions = [{ icon: ExitIcon, aria: 'Say Something', action: expandConsole }];
25+
const actions = [{ icon: CodeIcon, aria: 'Say Something', action: expandConsole }];
2626

2727
return (
2828
<BottomBarContent>

client/images/code.svg

Lines changed: 5 additions & 8 deletions
Loading

0 commit comments

Comments
 (0)