Skip to content

Commit e680940

Browse files
committed
Update arrow on mobile to not be a unicode character and remove blue highlighting when tap
1 parent 142c52f commit e680940

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

rails/app/assets/stylesheets/components/card.scss

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ $el-shadow: 0 1px 4px #bbb;
173173
}
174174
.tab {
175175
&:after {
176-
content: '\25b6\fe0e';
176+
content: '';
177177
}
178178
}
179179
}
@@ -210,6 +210,27 @@ $el-shadow: 0 1px 4px #bbb;
210210
}
211211

212212
.tab {
213+
&:focus {
214+
outline: none;
215+
}
216+
217+
-webkit-tap-highlight-color: rgba(0,0,0,0);
218+
-webkit-tap-highlight-color: transparent;
219+
220+
&:after {
221+
content: '';
222+
}
223+
224+
.arrow {
225+
width: 0;
226+
height: 0;
227+
border-top: 12px solid transparent;
228+
border-left: 15px solid rgba(255, 255, 255, 0.9);
229+
border-bottom: 12px solid transparent;
230+
margin-top: 1.1rem;
231+
margin-left: 0.5rem;
232+
}
233+
213234
background: orange;
214235
left: 0;
215236
top: 0.5rem;

rails/app/javascript/components/Card.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ class Card extends Component {
4343
render() {
4444
return (
4545
<div className={this.state.isToggleOn ? 'cardContainer onCanvas' : 'cardContainer offCanvas'}>
46-
<div className="tab" onClick={this.handleTray} />
46+
<div className="tab" onClick={this.handleTray}>
47+
<div className="arrow" />
48+
</div>
4749
<div className="closeMe" onClick={this.handleTray} />
4850
<div className="card">
4951
<div className="bar">

0 commit comments

Comments
 (0)