button style improvements, modal positioning fix.

This commit is contained in:
Saman Bemel-Benrud
2013-01-29 18:38:22 -05:00
parent 193b476e49
commit 2115e673f4
5 changed files with 66 additions and 38 deletions
-1
View File
@@ -86,7 +86,6 @@ iD.ui.commit = function(map) {
.on('click.cancel', function() {
event.cancel();
});
cancelbutton.append('span').attr('class','icon close icon-pre-text');
cancelbutton.append('span').attr('class','label').text('Cancel');
var warnings = body.selectAll('div.warning-section')
+11 -12
View File
@@ -26,16 +26,16 @@ iD.ui.inspector = function() {
tagList = inspectorwrap.append('ul');
inspectorwrap
.append('div')
.attr('class', 'add-tag-row')
.append('button')
.attr('class', 'add-tag')
.text('+ Add New Tag')
.on('click', function() {
addTag();
focusNewKey();
});
var newTag = inspectorwrap.append('button')
.attr('class', 'add-tag');
newTag.on('click', function() {
addTag();
focusNewKey();
});
newTag.append('span').attr('class', 'icon icon-pre-text plus');
newTag.append('span').text('New tag')
drawTags(entity.tags);
@@ -63,8 +63,7 @@ iD.ui.inspector = function() {
.attr('class', 'apply action')
.on('click', apply);
inspectorButton.append('span').attr('class','icon icon-pre-text apply');
inspectorButton.append('span').attr('class','label').text('Okay');
inspectorButton.append('span').attr('class','icon apply');
var minorButtons = selection.append('div').attr('class','minor-buttons fl');