Commit d307183
committed
fix(Select): align responsive popover max-width with ComboBox/Input pattern
Use the same max-width pattern as ComboBox and Input:
- If the component width in rem exceeds 40, cap max-width at the component's
own pixel width (preventing the picker from growing wider than the control)
- Otherwise fall back to the 40rem default cap
This replaces the previous flat 100rem value and matches the established
pattern used in ComboBox.ts and Input.ts.
Updated Cypress tests to reflect the dynamic max-width logic:
- Narrow select (200px) -> expects max-width: 40rem
- Wide select (1000px) -> expects max-width in px matching the component width1 parent af4eb20 commit d307183
2 files changed
Lines changed: 12 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1971 | 1971 | | |
1972 | 1972 | | |
1973 | 1973 | | |
1974 | | - | |
| 1974 | + | |
1975 | 1975 | | |
1976 | 1976 | | |
1977 | 1977 | | |
1978 | | - | |
| 1978 | + | |
1979 | 1979 | | |
1980 | 1980 | | |
1981 | 1981 | | |
| |||
1985 | 1985 | | |
1986 | 1986 | | |
1987 | 1987 | | |
1988 | | - | |
| 1988 | + | |
1989 | 1989 | | |
1990 | 1990 | | |
1991 | 1991 | | |
1992 | 1992 | | |
1993 | 1993 | | |
1994 | | - | |
| 1994 | + | |
1995 | 1995 | | |
1996 | 1996 | | |
1997 | 1997 | | |
1998 | | - | |
| 1998 | + | |
1999 | 1999 | | |
2000 | | - | |
| 2000 | + | |
2001 | 2001 | | |
2002 | 2002 | | |
2003 | 2003 | | |
2004 | 2004 | | |
2005 | 2005 | | |
2006 | 2006 | | |
2007 | 2007 | | |
| 2008 | + | |
2008 | 2009 | | |
2009 | 2010 | | |
2010 | 2011 | | |
2011 | | - | |
2012 | | - | |
2013 | | - | |
| 2012 | + | |
| 2013 | + | |
| 2014 | + | |
2014 | 2015 | | |
2015 | 2016 | | |
2016 | 2017 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1094 | 1094 | | |
1095 | 1095 | | |
1096 | 1096 | | |
| 1097 | + | |
1097 | 1098 | | |
1098 | 1099 | | |
1099 | 1100 | | |
| |||
1105 | 1106 | | |
1106 | 1107 | | |
1107 | 1108 | | |
1108 | | - | |
| 1109 | + | |
1109 | 1110 | | |
1110 | 1111 | | |
1111 | 1112 | | |
| |||
0 commit comments