This repository was archived by the owner on Apr 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +25
-3
lines changed
_index/component/date-textbox Expand file tree Collapse file tree 5 files changed +25
-3
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @ebay/skin " : major
3+ ---
4+
5+ feat(floating-ui): added support in date-textbox
Original file line number Diff line number Diff line change 44}
55.date-textbox {
66 --calendar-month-width : 311px ;
7+ display : inline-block;
78}
89
910.date-textbox > .textbox + .textbox {
Original file line number Diff line number Diff line change 4444 class = " icon-btn icon-btn--transparent"
4545 type = " button"
4646 aria-label = " Calendar"
47- onclick = " this.parentElement.nextElementSibling.toggleAttribute('hidden')"
4847 >
4948 <svg
5049 aria-hidden = " true"
420419 class = " icon-btn icon-btn--transparent"
421420 type = " button"
422421 aria-label = " Calendar"
423- onclick = " this.parentElement.nextElementSibling.toggleAttribute('hidden')"
424422 disabled
425423 >
426424 <svg
485483 class = " icon-btn icon-btn--transparent"
486484 type = " button"
487485 aria-label = " Calendar"
488- onclick = " this.parentElement.nextElementSibling.toggleAttribute('hidden')"
489486 >
490487 <svg
491488 aria-hidden = " true"
Original file line number Diff line number Diff line change @@ -187,6 +187,23 @@ document.querySelectorAll(".expand-btn").forEach(function (el) {
187187 } ) ;
188188} ) ;
189189
190+ document . querySelectorAll ( ".date-textbox" ) . forEach ( function ( el ) {
191+ const popperDropdown = new PopperDropdown (
192+ el ,
193+ null ,
194+ ".date-textbox__popover" ,
195+ ) ;
196+
197+ el . querySelector ( "button" ) . addEventListener ( "click" , function ( ) {
198+ this . parentElement . nextElementSibling . toggleAttribute ( "hidden" ) ;
199+ if ( this . parentElement . nextElementSibling . hasAttribute ( "hidden" ) ) {
200+ popperDropdown . hide ( ) ;
201+ } else {
202+ popperDropdown . show ( ) ;
203+ }
204+ } ) ;
205+ } ) ;
206+
190207document . querySelectorAll ( ".filter-menu-button--form" ) . forEach ( function ( el ) {
191208 const popperDropdown = new PopperDropdown (
192209 el ,
Original file line number Diff line number Diff line change 55.date-textbox {
66 /* 343px - (2 * var(--spacing-200)) [not autmatically compiled by LESS] */
77 --calendar-month-width : 311px ;
8+
9+ display : inline-block ;
810}
911
1012.date-textbox > .textbox + .textbox {
You can’t perform that action at this time.
0 commit comments