-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Added yearly goal affordances to mobile view in my books page #10208
base: master
Are you sure you want to change the base?
Added yearly goal affordances to mobile view in my books page #10208
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are accessibility issues in these changes.
$ year_markup = year_span(year) | ||
<a class="set-reading-goal-link li-title-desktop" data-ol-link-track="MyBooksLandingPage|SetReadingGoal"href="javascript:;"> | ||
$:_('%(year_span)s reading goal', year_span=year_markup) | ||
<img class="icon-link__image li-count" src="/static/images/icons/right-chevron.svg"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This image is missing a text alternative. This is a problem for people using screen readers.
for more information, see https://pre-commit.ci
I have done the changes and the |
Part of the problem is that there should only be one dialog with id To ensure that there is only one
Then, remove the other reading goal form native dialogs from You will run into a similar issue when a new goal is submitted. The view is updated by the To fix this, you'll likely want to update this line to use |
@sumana-2705, how is this progressing? Do you have any questions? |
@jimchamp Can i work on this if @sumana-2705 isnt? |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Hello @jimchamp thanks for your help, It has worked well and now it is working perfectly. I was busy with my semester exams and not able to see the replies. I added the reading goal form native dialog in |
Closes #10168
Fix
At present the UI does not have the option to set the yearly goals in Mobile view (as it is present in the side bar which is not included in the mobile view). This PR adds the option to set the yearly goals in the main body in mobile view.
Testing
Screenshot
After setting a particular goal
![WhatsApp Image 2024-12-27 at 5 52 04 PM (1)](https://private-user-images.githubusercontent.com/110307215/398936456-a03b5286-0541-4d2e-8e2b-b7bff25d4af3.jpeg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5OTY0MzQsIm5iZiI6MTczODk5NjEzNCwicGF0aCI6Ii8xMTAzMDcyMTUvMzk4OTM2NDU2LWEwM2I1Mjg2LTA1NDEtNGQyZS04ZTJiLWI3YmZmMjVkNGFmMy5qcGVnP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDhUMDYyODU0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MzIzZjY1Zjg1MTcxNjc4NTBiODA1ODc0MjUwZjU0Y2ViYmUyODJhODUyNmIyYjI1MGMzOWE5NmZhYWZhMTU2MSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.6mev68jx1xHjbRUJz5oLvwlZxSOQ8IyfrIXPQ5452OY)
In laptop view
![WhatsApp Image 2024-12-27 at 5 53 18 PM](https://private-user-images.githubusercontent.com/110307215/398936786-64af84f6-23ef-4b49-bf52-fca426d58355.jpeg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5OTY0MzQsIm5iZiI6MTczODk5NjEzNCwicGF0aCI6Ii8xMTAzMDcyMTUvMzk4OTM2Nzg2LTY0YWY4NGY2LTIzZWYtNGI0OS1iZjUyLWZjYTQyNmQ1ODM1NS5qcGVnP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDhUMDYyODU0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NTVlZTVhNDgwODE1MmNlNWM0OWMwYTY0Mjk2YmEzYjlmOWUzOTg1MzhhY2MxYzVjNDcwOWYyYmU3OTI0MzRmZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.Lpr3HjZ34ZJgMLeZxL90TGmriEttggnHf-NwS1abW2A)
Stakeholders
@jimchamp @mekarpeles