When I create the button as shown below and add it to a StackedPanel or BoxPanel, it gets inline styling applied to it that I cannot replace using this.node.style; the button gets stretched to the edges of the panel.
I have a hunch that I am doing this wrong. Does it even make sense to do this? Should I not use Widgets in order to create buttons? Or, is there a way to override the inline styling that gets applied to Widgets?
export class ButtonWidget extends Widget {
constructor(options = { node: document.createElement('button') }) {
super(options);
this.node.textContent = 'Clickme';
this.node.style.height = '10px'; // This doesn't get applied.
}