Skip to content

Conversation

@akila-i
Copy link
Contributor

@akila-i akila-i commented Jun 20, 2023

Summary

  • Kolibri EPUB renderer currently has 6 fixed built in themes, which are not allowed to be edited by users. Also, Kolibri does not allow adding new color themes to the EPUB renderer with the colors of user's preference. Changes in this PR will bring the ability for the users to add, edit and delete custom color themes for the epub viewer as they prefer.
  • User Interfaces :
    • Before -
image
    • Current status -
      1.1 Settings side bar in EPUB viewer (Desktop)

image

1.2 Settings side bar in EPUB viewer (Mobile)

image

2.1 Add a theme modal (Desktop)

image

2.2 Add a theme modal (Mobile)

image

3.1 Select a color using the color picker (Desktop) [CSS to be added]

image

3.2 Select a color using the color picker (Mobile) [CSS to be added]

image

References

Reviewer guidance

Can try the following features

  • Adding a new theme by selecting preferred colors for the text and background (link color is not implemented yet)
  • Deleting a custom created theme
  • Applying a custom created theme to the EPUB viewer
  • Editing a custom created theme to change the colors (right now it creates a new theme with the changed colors as the themeName property is not implemented yet)

Testing checklist

  • Contributor has fully tested the PR manually
  • If there are any front-end changes, before/after screenshots are included
  • Critical user journeys are covered by Gherkin stories
  • Critical and brittle code paths are covered by unit tests

PR process

  • PR has the correct target branch and milestone
  • PR has 'needs review' or 'work-in-progress' label
  • If PR is ready for review, a reviewer has been added. (Don't use 'Assignees')
  • If this is an important user-facing change, PR or related issue has a 'changelog' label
  • If this includes an internal dependency change, a link to the diff is provided

Reviewer checklist

  • Automated test coverage is satisfactory
  • PR is fully functional
  • PR has been tested for accessibility regressions
  • External dependency files were updated if necessary (yarn and pip)
  • Documentation is updated
  • Contributor is in AUTHORS.md

@akila-i akila-i force-pushed the create_custom_theme_container_for_epub_renderer branch from 22cb862 to 62f7743 Compare June 21, 2023 17:19
@akila-i akila-i force-pushed the create_custom_theme_container_for_epub_renderer branch from 62f7743 to d02d2d9 Compare June 21, 2023 17:20
@akila-i
Copy link
Contributor Author

akila-i commented Jun 21, 2023

Linters need to be run and the changes need to be pushed (TODO)

@github-actions
Copy link
Contributor

github-actions bot commented Jun 21, 2023

@akila-i akila-i force-pushed the create_custom_theme_container_for_epub_renderer branch 5 times, most recently from 3f78df5 to 677f794 Compare June 22, 2023 18:10
@akila-i
Copy link
Contributor Author

akila-i commented Jun 22, 2023

Linters need to be run and the changes need to be pushed (TODO)

Linting test failures are fixed.

@akila-i akila-i force-pushed the create_custom_theme_container_for_epub_renderer branch 2 times, most recently from e3258e7 to 9e2654e Compare July 1, 2023 05:08
@akila-i akila-i closed this Jul 1, 2023
@akila-i akila-i reopened this Jul 1, 2023
@akila-i akila-i force-pushed the create_custom_theme_container_for_epub_renderer branch 2 times, most recently from c21dd53 to 0b62368 Compare July 7, 2023 16:07
@akila-i akila-i force-pushed the create_custom_theme_container_for_epub_renderer branch 3 times, most recently from ff316e3 to fc14b40 Compare July 23, 2023 05:10
@akila-i akila-i force-pushed the create_custom_theme_container_for_epub_renderer branch from 2279acd to 7a86863 Compare July 31, 2023 03:56
@akila-i akila-i force-pushed the create_custom_theme_container_for_epub_renderer branch from 7a86863 to 718ea2b Compare August 7, 2023 09:47
@marcellamaki marcellamaki self-requested a review August 14, 2023 12:32
@tomiwaoLE
Copy link
Member

@marcellamaki just wondering if I can be any help here?

@marcellamaki
Copy link
Member

@tomiwaoLE - yes but probably in the follow up PR. This is just the MVP for functionality, and @akila-i has some other in-progress work that includes the designs that you worked on, which would be great to have your feedback on. I'll be sure tag you for review when that's ready :) thank you!!

@radinamatic
Copy link
Member

Hey @akila-i ! I'm still trying to finish the full test with the screen reader, but there is a one set of issues that you can already jump on fixing: the 3 new buttons that are in the New/Edit theme dialog (Background, Text, Link) do have visible labels, but those are not properly associated with the respective buttons:

Win10-2304 (Akila)  Running  - Oracle VM VirtualBox_001

See how in the NVDA Speech log it can only announce 'button' and does not say the labels? Compare with how the labels for 'Cancel' and 'Save' are properly announced at the end:

labels.mp4

@akila-i
Copy link
Contributor Author

akila-i commented Aug 18, 2023

Hey @akila-i ! I'm still trying to finish the full test with the screen reader, but there is a one set of issues that you can already jump on fixing: the 3 new buttons that are in the New/Edit theme dialog (Background, Text, Link) do have visible labels, but those are not properly associated with the respective buttons:

Win10-2304 (Akila) Running - Oracle VM VirtualBox_001

See how in the NVDA Speech log it can only announce 'button' and does not say the labels? Compare with how the labels for 'Cancel' and 'Save' are properly announced at the end:

labels.mp4

Thanks for pointing it out. Will fix that before the sync up

@akila-i akila-i force-pushed the create_custom_theme_container_for_epub_renderer branch 2 times, most recently from f898019 to c7869cf Compare August 18, 2023 19:05
@akila-i akila-i force-pushed the create_custom_theme_container_for_epub_renderer branch from ed80a66 to 8e64e86 Compare August 21, 2023 13:28
@akila-i
Copy link
Contributor Author

akila-i commented Aug 21, 2023

Hey @akila-i ! I'm still trying to finish the full test with the screen reader, but there is a one set of issues that you can already jump on fixing: the 3 new buttons that are in the New/Edit theme dialog (Background, Text, Link) do have visible labels, but those are not properly associated with the respective buttons:
Win10-2304 (Akila) Running - Oracle VM VirtualBox_001
See how in the NVDA Speech log it can only announce 'button' and does not say the labels? Compare with how the labels for 'Cancel' and 'Save' are properly announced at the end:
labels.mp4

Thanks for pointing it out. Will fix that before the sync up

H @radinamatic , this issue has been fixed. Please test and confirm

@marcellamaki
Copy link
Member

Closing as this work has been superseded by the work completed by @akila-i and merged into [epub-custom-themes](https://github.com/learningequality/kolibri/tree/epub-custom-themes) (#11156 and #11041)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants