Skip to content

Commit 930e58e

Browse files
committed
updatemenus point in the direction they'll open
1 parent 30b9fa5 commit 930e58e

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/components/updatemenus/constants.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,13 @@ module.exports = {
7070
activeColor: '#F4FAFF',
7171

7272
// color given to hovered buttons
73-
hoverColor: '#F4FAFF'
73+
hoverColor: '#F4FAFF',
74+
75+
// symbol for menu open arrow
76+
arrowSymbol: {
77+
left: '◄',
78+
right: '►',
79+
up: '▲',
80+
down: '▼'
81+
}
7482
};

src/components/updatemenus/draw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ function drawHeader(gd, gHeader, gButton, scrollBox, menuOpts) {
214214
.classed('user-select-none', true)
215215
.attr('text-anchor', 'end')
216216
.call(Drawing.font, menuOpts.font)
217-
.text('▼');
217+
.text(constants.arrowSymbol[menuOpts.direction]);
218218

219219
arrow.attr({
220220
x: menuOpts.headerWidth - constants.arrowOffsetX + menuOpts.pad.l,

0 commit comments

Comments
 (0)