[Tab-Title]: truncate text past certain length #7068
Labels
1 - assigned
Issues that are assigned to a sprint and a team member.
Calcite (dev)
Issues logged by Calcite developers.
design
Issues that need design consultation prior to development.
enhancement
Issues tied to a new feature or request.
impact - p3 - not time sensitive
User set priority impact status of p3 - not time sensitive
p - medium
Issue is non core or affecting less that 60% of people using the library
ready for dev
Issues ready for development implementation.
Milestone
Description
Truncate the
tab-title
text when it reaches 8px away from the x-button at all scales. This is a better behavior than the current wrapping.Stems from: #7026
This would need to have the tooltip applied for sighted users, just like the truncated button does (or any component with a set height).
More specifically, an
HTML label
should be used to reveal the full text for sighted users, and thecalcite-tooltip
is to provide additional context where needed.Figma layout from @SkyeSeitz
![image](https://private-user-images.githubusercontent.com/19231036/242343345-b717753f-eca9-46c3-bfbd-0c2ec5912ccb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNDEwODcsIm5iZiI6MTczOTI0MDc4NywicGF0aCI6Ii8xOTIzMTAzNi8yNDIzNDMzNDUtYjcxNzc1M2YtZWNhOS00NmMzLWJmYmQtMGMyZWM1OTEyY2NiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDAyMjYyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE2YTkyZmJmZTk5NjA3NGIyMjM5ODRkNjJkNTBhOTc1ZmYzMDk4YWIzOTJlNmYxNThhZmZjN2FlYzI5ZmI5ODkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.tSJ7Xv3OoQiYOBY2BrdBmMCvqmNbHgyv_erwtDXHKu4)
Acceptance Criteria
Long text is truncated and an html tooltip is provided for sighted users.
Relevant Info
No response
Which Component
tab-title
Example Use Case
No response
Priority impact
p4 - not time sensitive
Esri team
Calcite (dev)
The text was updated successfully, but these errors were encountered: