[tor-commits] [Git][tpo/applications/tor-browser][tor-browser-128.1.0esr-14.0-1] 2 commits: fixup! Bug 40701: Add security warning when downloading a file

morgan (@morgan) git at gitlab.torproject.org
Mon Aug 12 18:18:00 UTC 2024



morgan pushed to branch tor-browser-128.1.0esr-14.0-1 at The Tor Project / Applications / Tor Browser


Commits:
2f5828ec by Henry Wilkes at 2024-08-12T18:00:12+00:00
fixup! Bug 40701: Add security warning when downloading a file

Bug 42641: Use moz-button-group for panel buttons.

- - - - -
9167ae43 by Henry Wilkes at 2024-08-12T18:00:12+00:00
fixup! Bug 40925: Implemented the Security Level component

Bug 42641: Use moz-button-group for panel buttons.

Also tweak the "Learn more" link to have block-end padding to ensure its
focus outline is visible, and restrict it to align-start so that it does
not span the full width.

Also switch from `em` to `px` units for the vertical spacing.

- - - - -


3 changed files:

- browser/components/downloads/content/downloadsPanel.inc.xhtml
- browser/components/securitylevel/content/securityLevelPanel.css
- browser/components/securitylevel/content/securityLevelPanel.inc.xhtml


Changes:

=====================================
browser/components/downloads/content/downloadsPanel.inc.xhtml
=====================================
@@ -126,12 +126,12 @@
               class="downloads-tor-warning-tails-link"
             ></html:a>
           </html:p>
-          <html:div class="panel-footer">
+          <html:moz-button-group class="panel-footer">
             <html:button
-              class="downloads-tor-warning-dismiss-button"
+              class="footer-button downloads-tor-warning-dismiss-button"
               data-l10n-id="downloads-tor-warning-dismiss-button"
             ></html:button>
-          </html:div>
+          </html:moz-button-group>
         </vbox>
         <toolbarseparator />
       </vbox>


=====================================
browser/components/securitylevel/content/securityLevelPanel.css
=====================================
@@ -3,8 +3,8 @@
 #securityLevel-background {
   min-height: 10em;
   padding-inline: 16px;
-  padding-block: 1em 0;
-  gap: 1em;
+  padding-block: 16px 8px;
+  gap: 16px;
   background-repeat: no-repeat;
   background-position-y: top 0.4em;
   /* Icon center should be in-line with end padding.
@@ -61,3 +61,7 @@
   padding-inline-end: 5em;
   max-width: 20em;
 }
+
+#securityLevel-learnMore {
+  align-self: start;
+}


=====================================
browser/components/securitylevel/content/securityLevelPanel.inc.xhtml
=====================================
@@ -28,14 +28,16 @@
       data-l10n-id="security-level-panel-learn-more-link"
     ></html:a>
   </vbox>
-  <hbox class="panel-footer">
+  <html:moz-button-group class="panel-footer">
     <button
       id="securityLevel-settings"
+      class="footer-button"
       data-l10n-id="security-level-panel-open-settings-button"
     />
     <button
       id="securityLevel-restoreDefaults"
+      class="footer-button"
       data-l10n-id="security-level-restore-defaults-button"
     />
-  </hbox>
+  </html:moz-button-group>
 </panel>



View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/6d88311e2f99d16ae1a8e1e6abfeac8de9b343c7...9167ae4339f2a6da371c9e79dfdcedf46ad724dd

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/6d88311e2f99d16ae1a8e1e6abfeac8de9b343c7...9167ae4339f2a6da371c9e79dfdcedf46ad724dd
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tor-commits/attachments/20240812/f88acae6/attachment-0001.htm>


More information about the tor-commits mailing list