question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

missing group-focus types

See original GitHub issue
module.exports = {
  ...
  variants: {
    visibility: ["responsive", "hover", "focus", "group-hover", "group-focus"],
  }
};

The generated types contain the group-hover types, but not the group-focus ones:

export type TPseudoClasses =
  ...
  | 'group-hover:visible'
  | 'group-hover:invisible'

As per the documentation, group-focus works just like group-hover, so should their types 😃

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
AdrienLemairecommented, Sep 15, 2020

@muhammadsammy really sorry ^^ The fix in dbf7f20 doesn’t seem correct.

Given conf

    visibility: ["responsive", "hover", "focus", "group-focus"],

I get

$ cat src/utilities/tailwind.ts|grep group
  | 'group'
  | 'group-focus:invisible'

the group-focus:visible utility is missing.

Given conf

    visibility: ["responsive", "hover", "focus", "group-hover", "group-focus"],

I get

cat src/utilities/tailwind.ts|grep group
  | 'group'
  | 'group-focus:visible'
  | 'group-hover:invisible'
  | 'group-focus:invisible'

the group-hover:visible utility is missing.

It looks like the group utility replaces the first generated rule instead of being added.

1reaction
AdrienLemairecommented, Sep 15, 2020

@muhammadsammy actually I still have an issue. When enabling the group-hover or group-focus variants, we need to add the .group class as well, but it is not added to the types.

https://tailwindcss.com/docs/pseudo-class-variants#group-hover

If you need to style a child element when hovering over a specific parent element, add the .group class to the parent element and add the group-hover: prefix to the utility on the child element.

$ cat src/utilities/tailwind.ts|grep group
  | 'group-hover:visible'
  | 'group-focus:visible'
  | 'group-hover:invisible'
  | 'group-focus:invisible'
Read more comments on GitHub >

github_iconTop Results From Across the Web

Set up a Focus on iPhone - Apple Support
Set up a Focus on iPhone to help you concentrate by reducing distractions. ... Safari: Choose which Tab Group you want to use...
Read more >
What is a Focus Group | Step-by-Step Guide & Examples
A focus group is a small group of participants who share their feelings or perceptions on a particular topic with researchers.
Read more >
Designing and Conducting Focus Group Interviews
Use "think back" questions. Take people back to an experience and not forward to the future. • Use different types of questions.
Read more >
The use of focus group discussion methodology: Insights from ...
Focus group discussion is frequently used as a qualitative approach to gain an in-depth understanding of social issues.
Read more >
Types of Legal Focus Groups | Larrick Law Firm | FAQs
There are over 50 types of legal focus groups, with varying pros and cons. As a trial consultant who specializes in focus groups,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found