Skip to content

Wrap interactive FontAwesomeIcons in actual buttons - #8206

Merged
FreeTubeBot merged 2 commits into
FreeTubeApp:developmentfrom
absidue:icon-buttons-buttons
Nov 10, 2025
Merged

FreeTubeBot merged 2 commits into
FreeTubeApp:developmentfrom
absidue:icon-buttons-buttons

Conversation

@absidue

@absidue absidue commented Nov 1, 2025

Copy link
Copy Markdown
Member

Pull Request Type

  • Bugfix
  • Other

Description

After the Vue 3 pull request is merged we'll be able to start working on migrating to FontAwesome 7. One of the changes in FontAwesome 7 that will affect us is that it will no longer automatically convert the title attribute into a <title> element inside the generated SVG. As FreeTube was using that functionality on some of the interactive icons, this pull request wraps those icons in actual <button> elements, so the FontAwesome icon component is now only used for rendering the icon.

This pull request doesn't address those problems in the ft-input component, as that would conflict with my composition API migration of the FtInput component (on a branch already, just waiting for the Vue 3 PR to be merged) and it has more complicated styles than other components, which I didn't fancy fighting with today.

While doing these changes I noticed that some of the icon buttons don't have a title/tooltip or a label, so screen reader users can't use them, such as the expand and collapse side bar button and the remove button in the FtInputTags component. I haven't fixed those issues in this pull request, as I thought it was best to decide on appropriate labels in a follow up pull request.

Testing

Test the changed buttons and check that they still look and function the same as before.

Desktop

  • OS: Windows
  • OS Version: 11

@FreeTubeBot
FreeTubeBot enabled auto-merge (squash) November 1, 2025 17:52
@github-actions github-actions Bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Nov 1, 2025
@absidue absidue mentioned this pull request Nov 1, 2025
1 of 4 tasks

@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If i press Enter it will open the banner instead of closing it. Also button is black now instead of white

VirtualBoxVM_8tEeFCbn7k.mp4

black button

VirtualBoxVM_hHvJ5RJZvf

Error when adding channel

VirtualBoxVM_0AIp6jF0mh.mp4

@github-actions

github-actions Bot commented Nov 5, 2025

Copy link
Copy Markdown
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions

github-actions Bot commented Nov 6, 2025

Copy link
Copy Markdown
Contributor

Conflicts have been resolved. A maintainer will review the pull request shortly.

@absidue absidue added PR: waiting for review For PRs that are complete, tested, and ready for review and removed PR: changes requested labels Nov 6, 2025

@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

  • Pressing enter key on the X opens the release notes
VirtualBoxVM_SLqvfbPzKj.mp4
  • There seems to be a pre-existing issue here. If i tab and enter on page forward/backward it reloads the window. Clicking on it does behave normally. So i cant really evaluate if this works correctly if this isnt fixed?
VirtualBoxVM_qUi4iHefbt.mp4

@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc added PR: changes requested and removed PR: waiting for review For PRs that are complete, tested, and ready for review labels Nov 7, 2025
@absidue
absidue force-pushed the icon-buttons-buttons branch from b127282 to 5b0069a Compare November 8, 2025 17:01
@absidue absidue added PR: waiting for review For PRs that are complete, tested, and ready for review and removed PR: changes requested labels Nov 8, 2025

@PikachuEXE PikachuEXE left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Shift click top nav won't open new window but I guess it's vue 3 migration...

@FreeTubeBot
FreeTubeBot merged commit fcb311b into FreeTubeApp:development Nov 10, 2025
@github-actions github-actions Bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Nov 10, 2025
@absidue
absidue deleted the icon-buttons-buttons branch November 10, 2025 05:46
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Nov 11, 2025
* development: (41 commits)
  Translated using Weblate (Turkish)
  ! Fix top nav cannot search in new window (FreeTubeApp#8254)
  Bump vue from 3.5.22 to 3.5.24 (FreeTubeApp#8257)
  Translated using Weblate (Czech)
  Translated using Weblate (Italian)
  Translated using Weblate (Polish)
  Translated using Weblate (Hungarian)
  Translated using Weblate (Norwegian Bokmål)
  Bump lefthook from 2.0.2 to 2.0.3 (FreeTubeApp#8258)
  Bump the eslint group with 2 updates (FreeTubeApp#8256)
  Bump marked from 16.4.1 to 17.0.0 (FreeTubeApp#8260)
  Translated using Weblate (Breton)
  Translated using Weblate (Estonian)
  Translated using Weblate (French)
  Translated using Weblate (Chinese (Simplified Han script))
  Add support for importing and exporting search history (FreeTubeApp#8237)
  Invidious API: Fix published dates on recommended videos (FreeTubeApp#8251)
  Translated using Weblate (Chinese (Simplified Han script))
  ! Fix playlist progress bar preview broken in IV API (FreeTubeApp#8245)
  Wrap interactive FontAwesomeIcons in actual buttons (FreeTubeApp#8206)
  ...

# Conflicts:
#	package.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants