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.

InputGroup: highlighting does not cover whole inputGroup

See original GitHub issue

Describe the defect When an input text (or another input component) is part of an input group and the input text is hovered over or focused, only the input text is highlighted but not the input group addons (see picture below). The defect appears no matter if the input group addons are set before or after the input text.

screenshot_highlighting_inputgroup screenshot_highlighting_inputgroup_2 screenshot_highlighting_inputgroup_3

Environment:

  • PF Version: 10.0
  • Rain 2.0.0

Expected behavior When the input component of an input group is hovered over or focused, the highlighting should cover the whole input group including its input group addons.

Example XHTML (for first picture above)

<h:form id="frmTest">
    <div class="ui-inputgroup p-col-2">
        <p:inputText placeholder="Username"/>
	<span class="ui-inputgroup-addon"><i class="pi pi-times"></i></span>
    </div>
</h:form>

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
miedrlcommented, Jul 23, 2021

Okay but then I would expect the input element to be fully covered by the highlighting as in the second picture. In my opinion, the right border of the input element should be highlighted as well if the element has an inputgroup-addon attached at the right.

1reaction
jepsarcommented, Aug 5, 2021

@miedrl this is easy to fix in your project with custom CSS. This is working for me (Chrome) in the showcase:

.ui-inputgroup > :focus {
  z-index: 1;
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

<InputGroup> borders do not fully highlight when clicking in ...
In humanspeak, when you click on an input on either the Register or Input pages, the border color highlight does not properly extend...
Read more >
Apply ':focus' style to input-group - Stack Overflow
I only want it to apply to the input with the focus but at the moment it adds it to all my input-groups...
Read more >
Input group - Bootstrap
Easily extend form controls by adding text, buttons, or button groups on either side of textual inputs, custom selects, and custom file inputs....
Read more >
Bootstrap Form Inputs (more) - W3Schools
Bootstrap Input Groups ... The .input-group class is a container to enhance an input by adding an icon, text or a button in...
Read more >
Components · Bootstrap 3.3.5 Documentation - BootstrapDocs
As a thank you, we only ask that you include a link back to Glyphicons whenever ... We do not support multiple form-controls...
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