From 574995d0f1216c4e97ef364d739b1bde1052cd93 Mon Sep 17 00:00:00 2001 From: Julien Wajsberg Date: Mon, 15 May 2023 15:48:29 -0400 Subject: [PATCH] Fix the text in buttons not being centered properly --- res/css/photon/button.css | 7 +++++-- res/photon/index.html | 11 +++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/res/css/photon/button.css b/res/css/photon/button.css index e335b97b9b..aeff4be412 100644 --- a/res/css/photon/button.css +++ b/res/css/photon/button.css @@ -4,9 +4,12 @@ /* See https://design.firefox.com/photon/components/buttons.html for the spec */ .photon-button { - /* These two flex options aren't necessary when a real + Photon Button as a link
@@ -26,9 +28,11 @@

Photon Button Default

 <button type="button" class="photon-button photon-button-default">Default</button>
 <button type="button" class="photon-button photon-button-default" disabled title="This function is disabled because...">Disabled Default</button>
+<a class="photon-button photon-button-default">Default</a>
       
+ Default
@@ -36,9 +40,11 @@

Photon Button Primary

 <button type="button" class="photon-button photon-button-primary">Primary</button>
 <button type="button" class="photon-button photon-button-primary" disabled title="This function is disabled because...">Disabled Primary</button>
+<a class="photon-button photon-button-primary">Primary</a>
       
+ Primary
@@ -47,9 +53,11 @@

Photon Button Destructive

 <button type="button" class="photon-button photon-button-destructive">Delete</button>
 <button type="button" class="photon-button photon-button-destructive" disabled title="This function is disabled because...">Disabled Delete</button>
+<a class="photon-button photon-button-destructive">Delete</a>
       
+ Delete
@@ -57,9 +65,11 @@

Photon Button Micro

 <button type="button" class="photon-button photon-button-micro">Photon Micro Button</button>
 <button type="button" class="photon-button photon-button-micro" disabled title="This function is disabled because...">Disabled Photon Micro Button</button>
+<a class="photon-button photon-button-micro">Micro button as a link</a>
       
+ Micro button as a link
@@ -70,6 +80,7 @@

Photon Button Ghost

+

Photon inputs