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

Update Case Contacts Section-1 #5366

Conversation

chahmedejaz
Copy link
Contributor

What GitHub issue is this PR for, if any?

Resolves #5347

What changed, and why?

  • This PR updated the question for section 1 to "Select all relevant cases for this contact *"
  • Remove the unwanted styles
  • We are using a high number for the label font-weight - remove those to match the Figma
  • In the main.css, we are overriding the inline behavior of the span tag to block which kills its purpose. Hence remove thisas well
  • This fixes the red required asterisk alignment to match the Figma.

How will this affect user permissions?

  • Volunteer permissions:
  • Supervisor permissions:
  • Admin permissions:

How is this tested? (please write tests!) 💖💪

  • Please validate the expected behavior of the issue.

Screenshots :)

image

@@ -54,9 +54,6 @@ i,
a {
display: inline-block; }

span {
display: block; }
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was a syntax error in the main.css. Moreover, this doesn't make sense to change the default inline behavior for the <span> tag here to block. Doesn't it kill the purpose of span?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I’m so confused how this error has been here since February…? But definitely seems like there is an extra curly brace. Did you poke around the pages and make sure this removal didn’t cause any major styling issues?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Really sorry my ignorance here, @littleforest.

  • I was at the thought that this span style was being used only for the asterisk signs for them to be on the new line
  • This fact skipped my mind that it's a global style I'm changing 😓
  • I validated now and found many styling issues due to this. 😢
  • Anyway, I'll add a custom CSS class to override this style for the required asterisk signs here.
  • However, I believe we should have an enhancement issue where this style should be removed and all the styling issues should be handled accordingly as well.
  • By nature span is an inline element and changing this nature to block globally kills the purpose of this element.
  • We have other alternatives to achieve this behavior like paragraph tag, divs etc..
  • What do you say?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@chahmedejaz I agree that it is odd that span is set to display: block. Do you want to create a new ticket and see about making that change? You will probably have to touch a lot of pages/styles.

Copy link
Contributor Author

@chahmedejaz chahmedejaz Nov 16, 2023

Choose a reason for hiding this comment

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

@chahmedejaz I agree that it is odd that span is set to display: block. Do you want to create a new ticket and see about making that change? You will probably have to touch a lot of pages/styles.

Sure, I'd love to work on this refactor in a new ticket. I'll create another ticket will work on that as well. Thanks :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@littleforest - The respective ticket to handle this has been created:
#5377
Please review and let me know if something is missing. Thanks.

@chahmedejaz chahmedejaz force-pushed the task/5347-update-case-contacts-section1-styles branch from 3b778a1 to 4470db2 Compare November 15, 2023 08:28
@chahmedejaz
Copy link
Contributor Author

@littleforest - I've addressed your comment. The PR is ready for review now. Thanks.

@littleforest
Copy link
Collaborator

@chahmedejaz can you fix merge conflicts? Looks good to me otherwise.

@chahmedejaz
Copy link
Contributor Author

can you fix merge conflicts? Looks good to me otherwise.

It's fixed now @littleforest. You can move forward with this.

Copy link
Collaborator

@littleforest littleforest left a comment

Choose a reason for hiding this comment

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

Thanks for working on this!

@littleforest littleforest merged commit ac93495 into rubyforgood:main Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update "1. Select all relevant CASA cases *" section on Case Contact form
2 participants