feat(drawer): open-full action as secondary outline button with text + icon
Converts the "Open full page" control in the detail drawer header from an icon-only link into a text+icon button using the standard `secondary outline small` classes. Because the base button rule in app-shell.css only targets `button, [type=…], [role=button]`, the anchor gets `role="button"` so the core cascade applies (border-radius, padding, hover/focus states). Component-local CSS is trimmed to just the flex layout (icon + label with gap) and text-decoration reset — border, radius and colors come from the shared button base. Tooltip is removed (redundant with visible text); aria-label remains for screen readers. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -82,6 +82,14 @@
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.app-detail-drawer-full {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
white-space: nowrap;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.app-detail-drawer-body {
|
||||
flex: 1 1 auto;
|
||||
overflow-y: auto;
|
||||
|
||||
@@ -48,10 +48,10 @@ function ensureDrawerElement(labels) {
|
||||
</button>
|
||||
</div>
|
||||
<div class="app-detail-drawer-actions">
|
||||
<a class="transparent icon-button" data-detail-drawer-full
|
||||
target="_blank" rel="noopener"
|
||||
aria-label="${labels.openFull}" data-tooltip="${labels.openFull}" data-tooltip-pos="bottom">
|
||||
<i class="bi bi-box-arrow-up-right"></i>
|
||||
<a role="button" class="secondary outline small app-detail-drawer-full" data-detail-drawer-full
|
||||
target="_blank" rel="noopener" aria-label="${labels.openFull}">
|
||||
<i class="bi bi-box-arrow-up-right" aria-hidden="true"></i>
|
||||
<span>${labels.openFull}</span>
|
||||
</a>
|
||||
<button type="button" class="transparent icon-button" data-detail-drawer-close
|
||||
aria-label="${labels.close}" data-tooltip="${labels.close}" data-tooltip-pos="bottom">
|
||||
|
||||
Reference in New Issue
Block a user