Merge pull request #2683 from basecamp/mobile/bridge-button-slot

Mobile / Bridge button slot
This commit is contained in:
Jay Ohms
2026-03-17 12:25:36 -04:00
committed by GitHub
2 changed files with 7 additions and 2 deletions
@@ -5,7 +5,8 @@ BridgeElement.prototype.getButton = function() {
title: this.title,
icon: this.getIcon(),
displayTitle: this.getDisplayTitle(),
displayAsPrimaryAction: this.getDisplayAsPrimaryAction()
displayAsPrimaryAction: this.getDisplayAsPrimaryAction(),
slot: this.getSlot()
}
}
@@ -26,3 +27,7 @@ BridgeElement.prototype.getDisplayTitle = function() {
BridgeElement.prototype.getDisplayAsPrimaryAction = function() {
return !!this.bridgeAttribute("display-as-primary-action")
}
BridgeElement.prototype.getSlot = function () {
return this.bridgeAttribute("slot") ?? "right"
}