American consumers felt more confident in July as expectations over the near-term future rebounded. However, in a reversal of recent trends, feelings about current conditions weakened.

The Conference Board, a business research group, said Tuesday that its consumer confidence index rose to 100.3 in July from a downwardly revised 97.8 in June.

The index measures both Americans’ assessment of current economic conditions and their outlook for the next six months.

The measure of Americans’ short-term expectations for income, business and the job market rose in July to 78.2 from 72.8 in June.

Consumers’ view of current conditions fell in July to 133.6, from 135.3 in June.

Elevated prices for food and groceries remain the main driver of consumers’ view of the U.S. economy. Though inflation has come down considerably since the Federal Reserve started boosting interest rates in March 2022, prices remain well above pre-pandemic levels.

“Even though consumers remain relatively positive about the labor market, they still appear to be concerned about elevated prices and interest rates, and uncertainty about the future; things that may not improve until next year,” said Dana Peterson, the Conference Board’s chief economist.

The number of respondents who said they planned to purchase a home fell to a 12-year low as elevated interest rates, sky-high home prices and a lack of supply continue to discourage home shoppers.

Consumer spending accounts for nearly 70% of U.S. economic activity and is closely watched by economists for signs of how the American consumer is feeling.