Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#2671] fix QR code appearance in dark mode #14

Closed
wants to merge 1 commit into from

Conversation

pi-sigma
Copy link

Fixes open-formulieren/open-forms#2671

  • added style attribute to the img tag with the QR code to add white background

@pi-sigma pi-sigma force-pushed the issue/2671-qr-code-dark-mode branch 2 times, most recently from a57cc85 to 382bfa5 Compare February 13, 2023 15:57
@codecov-commenter
Copy link

Codecov Report

Merging #14 (382bfa5) into master (d9a2c7a) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #14   +/-   ##
=======================================
  Coverage   95.81%   95.81%           
=======================================
  Files          47       47           
  Lines        2342     2342           
  Branches      170      230   +60     
=======================================
  Hits         2244     2244           
  Misses         74       74           
  Partials       24       24           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@pi-sigma pi-sigma force-pushed the issue/2671-qr-code-dark-mode branch from 382bfa5 to fe52f84 Compare February 13, 2023 16:11
@@ -46,7 +46,7 @@ jobs:
- name: Generate coverage XML report
run: coverage xml
- name: Codecov
uses: codecov/codecov-action@v1.0.10
uses: codecov/codecov-action@v1.5.2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wasn't there a v3 already? I think we use that in the open forms backend

@@ -10,7 +10,7 @@ jobs:
continue-on-error: ${{ matrix.experimental == 'true' }}
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8']
python-version: ['3.8', '3.9', '3.10', '3.11']
django-version: ['2.2', '3.0', '3.1']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2.2 is end of life, so are 3.0 and 3.1. We should only support 3.2 (and 4.2 in a couple of weeks when it releases)

tox.ini Outdated
Comment on lines 5 to 6
py{38,39,310,311}-dj22-{normal,yubikey,custom_user},
py{38,39,310,311}-dj30-{normal,yubikey,custom_user},
py{38,39,310,311}-dj31-{normal,yubikey,custom_user},
py{38,39,310,311}-djmaster-{normal,yubikey,custom_user}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this build matrix also needs updating for proper django 3.2+ env, take a look at https://github.com/maykinmedia/drf-polymorphic/blob/main/tox.ini#L3 for example

@pi-sigma pi-sigma force-pushed the issue/2671-qr-code-dark-mode branch from fe52f84 to 2d74459 Compare February 15, 2023 13:30
* white background was missing from the CSS
* drop support for Python < 3.8 and Django < 3.2
@pi-sigma pi-sigma force-pushed the issue/2671-qr-code-dark-mode branch from 2d74459 to bbde9a5 Compare February 15, 2023 14:10
@sergei-maertens
Copy link
Member

decided against updating this fork and instead we'll tackle things in OF directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

QR-code for enabling MFA unreadable in dark mode
3 participants