In the code below, when the state changes to expanded, the inner text overflows but the grid item does not expand.