The Needs Review Queue Bot โ tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.
Consult the Drupal Contributor Guide โ to find step-by-step guides for working with issues.
- Status changed to Needs review
about 2 years ago 4:51am 31 January 2023 - ๐ฎ๐ณIndia gauravvvv Delhi, India
Restoring status, seems unrelated failure.
- Status changed to Needs work
about 2 years ago 2:29pm 31 January 2023 - ๐ฉ๐ชGermany rkoller Nรผrnberg, Germany
thanks @gauravvv. i've successfully applied the patch provided in #17 โจ Use the Action link button style for Views setting modal buttons Needs work to a drupal 10.1.x-dev installation. i can confirm that the point brought up in #16 โจ Use the Action link button style for Views setting modal buttons Needs work got fixed. but i've just noticed one detail, an consistency in regards of the background color on focus i haven't noticed before. the remove button for the views modal has a grey background:
while on a content type the button has no grey background on focus:
i havent found a states section in the drupal design system: https://www.figma.com/file/OqWgzAluHtsOd5uwm1lubFeH/๐ง-Drupal-Design-system?node-id=553%3A0&t=2Zn0WS4heBBIxoTI-0 but i suppose the styling on the delete action link on a content type could be taken as the source of truth so the styling is consistent?
- Status changed to Needs review
about 2 years ago 6:43am 1 February 2023 - ๐ฎ๐ณIndia gauravvvv Delhi, India
1. I have removed the grey background on focus state.
2. Also, I have updated the color of button on focus from
#000
to#c11f1f
, same asaction-link--danger
.I have added a patch and interdiff with #17. Please review
- ๐ฎ๐ณIndia nayana_mvr
Verified the patch #24 and tested it on Drupal version 10.1.x. The patch works fine and the issue mentioned in #23 โจ Use the Action link button style for Views setting modal buttons Needs work is also fixed now. Have added the before and after screenshots for reference. RTBC+1
- ๐ฉ๐ชGermany rkoller Nรผrnberg, Germany
thanks @gauravvv. i've applied the latest patch in #24 โจ Use the Action link button style for Views setting modal buttons Needs work and compared it with the action link on a content type another time.
on focus the button text on the view turns black and turns back to red on hover again (see views.mp4). plus on hover (also if the button is in focus on hover) the background color remains the same. on the content type edit page the background color changes to a light red background. so basically there is currently no visually feedback for hover and or click events for the button. style changes for the active state aren't applied the changes for the hover state are not applied or use a different styling in part.
i am not a developer and not familiar in depth with the code conventions but i wonder if it would make sense to use and apply the color variables for the active and hover states used on action links on the button as well?
active:
color:var(--color-maximumred-active)
color
background-color:var(--color-bgred-active)
hover:
color:var(--color-maximumred-hover)
background-color:var(--color-bgred-hover)
- ๐ฎ๐ณIndia gauravvvv Delhi, India
I have updated the patch per #26.
1. Updated the trash icon on, normal, hover & active state.
2. Updated the color and background color on hover and active state.
3. Improved nesting of button selectors.Please review.
The last submitted patch, 27: 3272614-27.patch, failed testing. View results โ
- ๐ฎ๐ณIndia gauravvvv Delhi, India
Restoring status, unrelated failure.
- Status changed to Needs work
about 2 years ago 11:11am 2 February 2023 - ๐ฉ๐ชGermany rkoller Nรผrnberg, Germany
thanks for updating the patch @gauravvv! i can confirm when hovered and clicked the button the styling for the hover and active state are applied correctly now. only for the combination of focus and hover there are two details left to note:
1. when the button gets into focus the remove text gets black instead of remaining at
var(--color-maximumred)
2. on hover and still in focus the text gets red but doesnt havevar(--color-bgred-hover)
as background color but the background color gets overridden withvar(--color-white)
- Merge request !7840Action link button style for Views setting modal โ (Open) created by Unnamed author
- Status changed to Needs review
10 months ago 3:17am 30 April 2024 - ๐ฎ๐ณIndia gauravvvv Delhi, India
Addressed feedbacks from #30. please review
- ๐ฎ๐ณIndia divya.sejekan
Verified using MR-7840! - 3272614-use-the-action
The changes are implemented in both D10.2 , D11Steps :
1. Navigate to /admin/structure/views/view/content
2. Click on any fieldRTBC ++
Keeping for further reviews
- ๐ฎ๐ณIndia Kanchan Bhogade
Hi
I've tested MR !7840 on Drupal 11
The MR is applied cleanly and changes are implemented and look good to me
Adding ScreenshotsSteps :
1. Navigate to /admin/structure/views/view/content
2. Click on any fieldRTBC ++
Keeping for further reviews
- ๐ฉ๐ชGermany rkoller Nรผrnberg, Germany
thanks @Gauravvvv that looks real good. i went in a last time and compared it against the action link on the edit page of a content type. the only minor nitpick i've just noticed cuz it is barely noticeable. per default the button has
background: transparent;
on focus the background gets changed towhite background-color: var(--color-white);
. the content type page has a white background but in the context of a dialog modal we have a greyish background here and focus should technically only adding an outline. so i wonder if it would make sense to change it tobackground-color: transparent;
? cuz just strikingbackground-color: var(--color-white);
leads to a the regular grey button background color. - ๐ฎ๐ณIndia gauravvvv Delhi, India
Yes make sense @rkoller. I have made the necessary changes in the MR.
- ๐ฉ๐ชGermany rkoller Nรผrnberg, Germany
Thanks @gauravvvv! Looks good. I've updated the issue summary. Moved most of the parts from the problems section into the newly create proposed resolution section which was missing and reworded that part a bit and added examples for the different states for easier review. and i've also removed the needs design tag. aside that i dont see any other concern raised in the comments. looks good to go overall. i am just not sure if someone has to take another look at the code and if i am eligible setting it to rtbc since i've opened the issue?
- ๐ฉ๐ชGermany rkoller Nรผrnberg, Germany
accidently used the hover.jpg also for he stlying on hover and active example, replaced it with the correct hover_active.jpg
- Status changed to RTBC
10 months ago 1:10pm 1 May 2024 - ๐ฆ๐บAustralia sime Melbourne
I've checked all the "danger" buttons and they conform to the guidance in the issue summary and appear consistent and not broken.
- FieldConfigEditForm (Field config edit form)
- ProfileForm.php (Cancel account)
- WorkflowTransitionEditForm.php
- WorkflowStateEditForm.php
I'm RTBC'ing this as it appears to be consensus in #2,#3 etc that this is a sound UX change, there are multiple people saying RTBC++, and the scope of the css chanage is only "danger" buttons which appear to be easily identified and checked.
- Status changed to Needs work
10 months ago 11:08pm 4 May 2024 - Status changed to Needs review
10 months ago 2:01pm 7 May 2024 - ๐ฎ๐ณIndia gauravvvv Delhi, India
Addressed #41, I have removed the button danger specificity. UI is looking same as before. Please review
- Status changed to Needs work
10 months ago 1:50pm 15 May 2024 - ๐บ๐ธUnited States smustgrave
@Gauravvv you tagged for screenshots so moving to NW for those.
May need a rebase also.
- ๐ฎ๐ณIndia mithun s Bangalore
Mithun S โ made their first commit to this issueโs fork.
- ๐ฎ๐ณIndia mithun s Bangalore
Added a rebase for the PR which was raised.