oppia / oppia

A free, online learning platform to make quality education accessible for all.
https://www.oppia.org
Apache License 2.0
5.62k stars 3.78k forks source link

Fix #20166 : Updates character ‘s’ Next to Edit Icon in ‘Insert Image’ of RTE with 'SVG' #20209

Closed Akhilesh-max closed 2 weeks ago

Akhilesh-max commented 2 weeks ago

Overview

  1. This PR fixes #20166.
  2. This PR does the following: it updates character ‘s’ Next to Edit Icon in ‘Insert Image’ of RTE with 'SVG' as the edit icon opens the SVG editor.

Essential Checklist

Please follow the instructions for making a code change.

Proof that changes are correct

Before :

Screenshot 2024-04-24 at 11 01 26 PM

After :

Screenshot 2024-04-25 at 12 47 10 PM

PR Pointers

oppiabot[bot] commented 2 weeks ago

Assigning @kevintab95 for the first pass review of this PR. Thanks!

seanlip commented 2 weeks ago

@Akhilesh-max Thanks for the fix. The pencil should take priority and the "SVG" is just an annotation to it. Can you make the "SVG" text smaller, or the pencil icon bigger, or put the "SVG" text under the pencil icon or somewhere else so that it looks cleaner/clearer?

Thanks.

Akhilesh-max commented 2 weeks ago

@seanlip Looks good? Updated the image in the PR.

seanlip commented 2 weeks ago

@Akhilesh-max Better, but still one question. Why is the "SVG" font a serif font? It looks out of place with the rest of the text on the screen.

Akhilesh-max commented 2 weeks ago

@seanlip, the different font was being inherited from the i tag. I had two options to address this: either change the font family of the SVG text to match with the rest of the page or move it outside the i tag and adjust the alignment accordingly. I decided to go with the first option and changed the font family of the SVG text. However, please let me if it's ok this way. (Have updated the image in the description)

Thanks.

seanlip commented 2 weeks ago

Assigning @kevintab95 for codeowners.

oppiabot[bot] commented 2 weeks ago

Hi @Akhilesh-max, this PR is ready to be merged. Please address any remaining comments prior to merging, and feel free to ask someone to merge your PR once the CI checks pass and you're happy with it. Thanks!