Page MenuHomePhabricator

Centralize "start icon padding" style logic
Closed, ResolvedPublic

Description

The start Icon container logic has now been replicated in 3 different components (TypeaheadSearch, TexInput, Select) and it should be centralized to avoid duplication.

Definition of done

  • Create new mixins
  • Update Select.vue
  • Update textInput.vue
  • Update typeaheadSearch

Event Timeline

STH triaged this task as Medium priority.Apr 30 2022, 6:04 PM
SimoneThisDot changed the task status from Open to In Progress.May 4 2022, 12:15 PM
SimoneThisDot claimed this task.
SimoneThisDot moved this task from Up Next to Design-System-Sprint on the Design-System-Team board.
SimoneThisDot updated the task description. (Show Details)

Change 789134 had a related patch set uploaded (by Simone Cuomo; author: Simone Cuomo):

[design/codex@main] Centralize "start icon padding" style logic

https://gerrit.wikimedia.org/r/789134

FYI: I have not updated the typedahead yet as it is still in current changes and development.

Catrope subscribed.

Moving back to Ready for Dev because TypeaheadSearch isn't done yet. @SimoneThisDot I'm unassigning from you because your patch is merged, but feel free to assign this to yourself again if/when you work on the TypeaheadSearch piece.

Change 789134 merged by jenkins-bot:

[design/codex@main] styles: Centralize "start icon padding" style logic

https://gerrit.wikimedia.org/r/789134

Change 791587 had a related patch set uploaded (by Simone Cuomo; author: Simone Cuomo):

[design/codex@main] Style: Refactor icon positioning in TypeaheadSearch using mixin

https://gerrit.wikimedia.org/r/791587

@Sarai-WMDE Simone has refactored some of the code around start-icon padding in TypeaheadSearch. When you get a chance, could you please look over the demo and confirm if everything is good to go here?

Thanks for the heads-up and the useful link, Anne! I'm not noticing any visual alterations in the components affected by the change. Just left a small comment in the patch, though. Let's wait until everything is resolved to move the ticket forward on the board.

Change 791587 merged by jenkins-bot:

[design/codex@main] Style: Refactor icon positioning in TypeaheadSearch using mixin

https://gerrit.wikimedia.org/r/791587

All changes have been addressed and the Patch merged. Moving the ticket forward for design review.

No visual issues were detected. LGTUX.

NBaca-WMF subscribed.

Moving Functional Testing of this component out of this current sprint and into the general Team Functional Testing column, in order to focus on current sprint goals, which primarily include preparing Typeahead Search and several other smaller tasks.

A related reason for doing this is to ensure we have time to triage any tickets or followup work that might come from the functional review of this fix.

Will pick up when prioritized for release.

AnneT updated the task description. (Show Details)