Skip to content

Commit dcdf368

Browse files
committed
Change <button> to <span> of notebook action icons
1 parent 92646c8 commit dcdf368

File tree

3 files changed

+20
-15
lines changed

3 files changed

+20
-15
lines changed

zeppelin-server/src/test/java/org/apache/zeppelin/integration/AuthenticationIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ public void testGroupPermission() throws Exception {
158158

159159
String noteId = driver.getCurrentUrl().substring(driver.getCurrentUrl().lastIndexOf("/") + 1);
160160

161-
pollingWait(By.xpath("//button[@tooltip='Note permissions']"),
162-
MAX_BROWSER_TIMEOUT_SEC).sendKeys(Keys.ENTER);
161+
pollingWait(By.xpath("//span[@tooltip='Note permissions']"),
162+
MAX_BROWSER_TIMEOUT_SEC).click();
163163
pollingWait(By.xpath("//input[@ng-model='permissions.owners']"), MAX_BROWSER_TIMEOUT_SEC)
164164
.sendKeys("finance");
165165
pollingWait(By.xpath("//input[@ng-model='permissions.readers']"), MAX_BROWSER_TIMEOUT_SEC)

zeppelin-web/src/app/notebook/notebook-actionBar.html

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -153,26 +153,24 @@ <h3>
153153
</span>
154154

155155
<div class="pull-right" style="margin-top:15px; margin-right:15px; font-size:15px;">
156-
<span>
157-
<button type="button"
158-
class="btn btn-default btn-xs"
156+
<span class="setting-btn"
157+
type="button"
159158
data-toggle="modal"
160159
data-target="#shortcutModal"
161160
tooltip-placement="bottom" tooltip="List of shortcut">
162-
<i class="fa fa-keyboard-o"></i>
163-
</button>
164-
<button type="button"
165-
class="btn btn-default btn-xs"
161+
<i class="fa fa-keyboard-o"></i>
162+
</span>
163+
<span class="setting-btn"
164+
type="button"
166165
ng-click="toggleSetting()"
167166
tooltip-placement="bottom" tooltip="Interpreter binding">
168-
<i class="fa fa-cog" ng-style="{color: showSetting ? '#3071A9' : 'black' }"></i>
169-
</button>
170-
<button type="button"
171-
class="btn btn-default btn-xs"
167+
<i class="fa fa-cog" ng-style="{color: showSetting ? '#3071A9' : 'black' }"></i>
168+
</span>
169+
<span class="setting-btn"
170+
type="button"
172171
ng-click="togglePermissions()"
173172
tooltip-placement="bottom" tooltip="Note permissions">
174-
<i class="fa fa-lock" ng-style="{color: showPermissions ? '#3071A9' : 'black' }"></i>
175-
</button>
173+
<i class="fa fa-lock" ng-style="{color: showPermissions ? '#3071A9' : 'black' }"></i>
176174
</span>
177175

178176
<span class="btn-group">

zeppelin-web/src/app/notebook/notebook.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,13 @@
223223
padding-left: 5px;
224224
}
225225

226+
.setting-btn {
227+
position: relative;
228+
top: 2px;
229+
margin-right: 4px;
230+
cursor: pointer;
231+
}
232+
226233
.cron-preset-container {
227234
padding: 10px 20px 0 20px;
228235
font-weight: normal;

0 commit comments

Comments
 (0)